fix: trust proxy why cidr.
This commit is contained in:
parent
6a5ba755a0
commit
d5102a292c
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ server {
|
|||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_pass http://snipeit;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ services:
|
|||
APP_ENV: "production"
|
||||
APP_DEBUG: "false"
|
||||
PHP_UPLOAD_LIMIT: "100"
|
||||
APP_TRUSTED_PROXIES: "172.0.0.0/32" # i hate this
|
||||
APP_TRUSTED_PROXIES: "172.18.0.0/24" # i hate this
|
||||
env_file:
|
||||
- /etc/ixvd/secrets/env/snipeit.env
|
||||
volumes:
|
||||
|
|
Loading…
Reference in a new issue