update config example

This commit is contained in:
yusing 2025-01-06 04:04:05 +08:00
parent 5a9fc3ad18
commit bc2335a54e

View file

@ -22,14 +22,22 @@
entrypoint: entrypoint:
middlewares: middlewares:
# this part blocks all non-LAN HTTP traffic
# remove if you don't want this
- use: CIDRWhitelist - use: CIDRWhitelist
allow: allow:
- "127.0.0.1" - "127.0.0.1"
- "10.0.0.0/8" - "10.0.0.0/8"
- "172.16.0.0/12"
- "192.168.0.0/16" - "192.168.0.0/16"
status: 403 status: 403
message: "Forbidden" message: "Forbidden"
# end of CIDRWhitelist
# this part redirects HTTP to HTTPS
# remove if you don't want this
- use: RedirectHTTP - use: RedirectHTTP
# access_log: # access_log:
# buffer_size: 1024 # buffer_size: 1024
# path: /var/log/example.log # path: /var/log/example.log