Bootstrap caddy reverse role
This commit is contained in:
commit
b3169c0fcf
9 changed files with 150 additions and 0 deletions
25
templates/reverse.caddy.j2
Normal file
25
templates/reverse.caddy.j2
Normal file
|
@ -0,0 +1,25 @@
|
|||
{{ vhost_url }} {
|
||||
|
||||
header / {
|
||||
# Enable HTTP Strict Transport Security (HSTS) to force clients to always
|
||||
# connect via HTTPS (do not use if only testing)
|
||||
Strict-Transport-Security "max-age=31536000;"
|
||||
# Enable cross-site filter (XSS) and tell browser to block detected attacks
|
||||
X-XSS-Protection "1; mode=block"
|
||||
# Prevent some browsers from MIME-sniffing a response away from the declared Content-Type
|
||||
X-Content-Type-Options "nosniff"
|
||||
# Disallow the site to be rendered within a frame (clickjacking protection)
|
||||
X-Frame-Options "DENY"
|
||||
}
|
||||
|
||||
proxy / http://{{ reverse_location }}:{{ reverse_port }} {
|
||||
transparent
|
||||
}
|
||||
|
||||
log {{ caddy_logs }}/{{ vhost_name }}/access.log {
|
||||
rotate_size 100
|
||||
rotate_age 30
|
||||
rotate_keep 10
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue