Skip to content

Commit

Permalink
update config example
Browse files Browse the repository at this point in the history
  • Loading branch information
yusing committed Jan 5, 2025
1 parent 5a9fc3a commit bc2335a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,22 @@

entrypoint:
middlewares:
# this part blocks all non-LAN HTTP traffic
# remove if you don't want this
- use: CIDRWhitelist
allow:
- "127.0.0.1"
- "10.0.0.0/8"
- "172.16.0.0/12"
- "192.168.0.0/16"
status: 403
message: "Forbidden"
# end of CIDRWhitelist

# this part redirects HTTP to HTTPS
# remove if you don't want this
- use: RedirectHTTP

# access_log:
# buffer_size: 1024
# path: /var/log/example.log
Expand Down

0 comments on commit bc2335a

Please sign in to comment.