fix: trust proxy why cidr.

This commit is contained in:
Strix 2024-01-01 19:48:49 +01:00
parent 6a5ba755a0
commit d5102a292c
No known key found for this signature in database
GPG key ID: 5F35B3B8537287A7
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ server {
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 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; proxy_pass http://snipeit;
} }
} }

View file

@ -16,7 +16,7 @@ services:
APP_ENV: "production" APP_ENV: "production"
APP_DEBUG: "false" APP_DEBUG: "false"
PHP_UPLOAD_LIMIT: "100" 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: env_file:
- /etc/ixvd/secrets/env/snipeit.env - /etc/ixvd/secrets/env/snipeit.env
volumes: volumes: