mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 04:42:33 +02:00
update config example
This commit is contained in:
parent
5a9fc3ad18
commit
bc2335a54e
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue