tweak default docker compose

This commit is contained in:
yusing 2025-05-11 23:40:38 +08:00
parent e300170c51
commit 99e975145c

View file

@ -38,10 +38,25 @@
entrypoint: entrypoint:
# Below define an example of middleware config # Below define an example of middleware config
# 1. block non local IP connections # 1. set security headers
# 2. redirect HTTP to HTTPS # 2. block non local IP connections
# 3. redirect HTTP to HTTPS
# #
# middlewares: middlewares:
- use: CloudflareRealIP
- use: ModifyResponse
set_headers:
Access-Control-Allow-Methods: GET, POST, PUT, PATCH, DELETE, OPTIONS, HEAD
Access-Control-Allow-Headers: "*"
Access-Control-Allow-Origin: "*"
Access-Control-Max-Age: 180
Vary: "*"
X-XSS-Protection: 1; mode=block
Content-Security-Policy: "object-src 'self'; frame-ancestors 'self';"
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Referrer-Policy: same-origin
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
# - use: CIDRWhitelist # - use: CIDRWhitelist
# allow: # allow:
# - "127.0.0.1" # - "127.0.0.1"