Private
Public Access
2
0
This commit is contained in:
2026-02-12 06:46:54 +01:00
parent b02fbe7117
commit 295b19aaa8
3 changed files with 14 additions and 15 deletions

View File

@@ -4,7 +4,7 @@
caddy_my_name: "mywaf" caddy_my_name: "mywaf"
caddy_http_port: 80 caddy_http_port: 80
caddy_https_port: 443 caddy_https_port: 443
caddy_default_bind: "" caddy_default_bind: null
# If true, will not install software, just deploy Caddy and OWASP CRS # If true, will not install software, just deploy Caddy and OWASP CRS
# configuration files. # configuration files.
@@ -21,8 +21,8 @@ caddy_ca_root: null
# For using a Consul cluster. # For using a Consul cluster.
caddy_consul: false caddy_consul: false
caddy_consul_delegate_to: null # Required caddy_consul_delegate_to: null # Required, Consul host for running Consul commands
caddy_consul_admin_token: null # Required caddy_consul_admin_token: null # Required, generate with "uuidgen"
caddy_consul_aes_key: null # Required, 32 characters caddy_consul_aes_key: null # Required, 32 characters
caddy_consul_server: "127.0.0.1:8500" caddy_consul_server: "127.0.0.1:8500"
# FIXME: SSL connexion doesn't work # FIXME: SSL connexion doesn't work

View File

@@ -1,4 +1,3 @@
- name: Create consul policy for Caddy TLS and rate limit - name: Create consul policy for Caddy TLS and rate limit
delegate_to: "{{ caddy_consul_delegate_to }}" delegate_to: "{{ caddy_consul_delegate_to }}"
run_once: true run_once: true

View File

@@ -58,9 +58,9 @@ caddy_global_sites_defaults:
# CORS - Cross Origin Resource Sharing # CORS - Cross Origin Resource Sharing
cors: false cors: false
cors_allowed_origins: [] # Minimum 1 required cors_allowed_origins: [] # Minimum 1 required
cors_allowed_methods: cors_allowed_methods:
# These variables can be used for adding and removing extensions from the list: # These variables can be used for adding and removing methods from the list:
# cors_allowed_methods_add: ["XXX"] # cors_allowed_methods_add: ["XXX"]
# cors_allowed_methods_del: ["YYY"] # cors_allowed_methods_del: ["YYY"]
- "GET" - "GET"
@@ -68,7 +68,7 @@ caddy_global_sites_defaults:
- "POST" - "POST"
- "OPTIONS" - "OPTIONS"
cors_allowed_headers: cors_allowed_headers:
# These variables can be used for adding and removing extensions from the list: # These variables can be used for adding and removing headers from the list:
# cors_allowed_headers_add: ["Xxx"] # cors_allowed_headers_add: ["Xxx"]
# cors_allowed_headers_del: ["Yyy"] # cors_allowed_headers_del: ["Yyy"]
- "Cache-Control" - "Cache-Control"
@@ -79,12 +79,12 @@ caddy_global_sites_defaults:
cors_max_age: 3600 cors_max_age: 3600
cors_allowed_credentials: false cors_allowed_credentials: false
cors_vary: cors_vary:
# These variables can be used for adding and removing extensions from the list: # These variables can be used for adding and removing headers from the list:
# cors_vary_add: ["Xxx"] # cors_vary_add: ["Xxx"]
# cors_vary_del: ["Yyy"] # cors_vary_del: ["Yyy"]
- "Origin" - "Origin"
cors_exposed_headers: cors_exposed_headers:
# These variables can be used for adding and removing extensions from the list: # These variables can be used for adding and removing headers from the list:
# cors_exposed_headers_add: ["Xxx"] # cors_exposed_headers_add: ["Xxx"]
# cors_exposed_headers_del: ["Yyy"] # cors_exposed_headers_del: ["Yyy"]
- "Content-Length" - "Content-Length"
@@ -309,7 +309,7 @@ caddy_global_sites_defaults:
crs_sampling_percentage: 100 crs_sampling_percentage: 100
crs_allow_method_override_parameter: 0 crs_allow_method_override_parameter: 0
crs_allowed_methods: crs_allowed_methods:
# These variables can be used for adding and removing extensions from the list: # These variables can be used for adding and removing methods from the list:
# crs_allowed_methods_add: ["XXX"] # crs_allowed_methods_add: ["XXX"]
# crs_allowed_methods_del: ["YYY"] # crs_allowed_methods_del: ["YYY"]
- "GET" - "GET"
@@ -317,7 +317,7 @@ caddy_global_sites_defaults:
- "POST" - "POST"
- "OPTIONS" - "OPTIONS"
crs_allowed_request_content_type: crs_allowed_request_content_type:
# These variables can be used for adding and removing extensions from the list: # These variables can be used for adding and removing content types from the list:
# crs_allowed_request_content_type_add: ["|xxx/yyy|"] # crs_allowed_request_content_type_add: ["|xxx/yyy|"]
# crs_allowed_request_content_type_del: ["|zzz/aaa|"] # crs_allowed_request_content_type_del: ["|zzz/aaa|"]
- "|application/json|" - "|application/json|"
@@ -428,7 +428,7 @@ caddy_global_sites_defaults:
- ".xsd/" - ".xsd/"
- ".xsx/" - ".xsx/"
crs_restricted_headers_basic: crs_restricted_headers_basic:
# These variables can be used for adding and removing extensions from the list: # These variables can be used for adding and removing headers from the list:
# crs_restricted_headers_basic_add: ["/xxx/"] # crs_restricted_headers_basic_add: ["/xxx/"]
# crs_restricted_headers_basic_del: ["/yyy/"] # crs_restricted_headers_basic_del: ["/yyy/"]
- "/content-encoding/" - "/content-encoding/"
@@ -442,12 +442,12 @@ caddy_global_sites_defaults:
- "/x-method-override/" - "/x-method-override/"
- "/x-middleware-subrequest/" - "/x-middleware-subrequest/"
crs_restricted_headers_extended: crs_restricted_headers_extended:
# These variables can be used for adding and removing extensions from the list: # These variables can be used for adding and removing headers from the list:
# crs_restricted_headers_extended_add: ["/xxx/"] # crs_restricted_headers_extended_add: ["/xxx/"]
# crs_restricted_headers_extended_del: ["/yyy/"] # crs_restricted_headers_extended_del: ["/yyy/"]
- "/accept-charset/" - "/accept-charset/"
crs_allowed_http_versions: crs_allowed_http_versions:
# These variables can be used for adding and removing extensions from the list: # These variables can be used for adding and removing protocols from the list:
# crs_allowed_http_versions_add: ["HTTP/x.x"] # crs_allowed_http_versions_add: ["HTTP/x.x"]
# crs_allowed_http_versions_del: ["HTTP/y.y"] # crs_allowed_http_versions_del: ["HTTP/y.y"]
- "HTTP/1.0" - "HTTP/1.0"
@@ -457,7 +457,7 @@ caddy_global_sites_defaults:
- "HTTP/3" - "HTTP/3"
- "HTTP/3.0" - "HTTP/3.0"
crs_allowed_request_content_type_charset: crs_allowed_request_content_type_charset:
# These variables can be used for adding and removing extensions from the list: # These variables can be used for adding and removing charsets from the list:
# crs_allowed_request_content_type_charset_add: ["|xxx|"] # crs_allowed_request_content_type_charset_add: ["|xxx|"]
# crs_allowed_request_content_type_charset_del: ["|yyy|"] # crs_allowed_request_content_type_charset_del: ["|yyy|"]
- "|utf-8|" - "|utf-8|"