From d5102a292cbf802d835d4b8d03eff522926aa25d Mon Sep 17 00:00:00 2001 From: Raine Date: Mon, 1 Jan 2024 19:48:49 +0100 Subject: [PATCH] fix: trust proxy why cidr. --- servers/apoc/docker-compose.d/custom/nginx/conf.d/snipeit.conf | 2 +- servers/apoc/docker-compose.d/docker-compose.snipeit.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/apoc/docker-compose.d/custom/nginx/conf.d/snipeit.conf b/servers/apoc/docker-compose.d/custom/nginx/conf.d/snipeit.conf index 0ac51ee..762819a 100644 --- a/servers/apoc/docker-compose.d/custom/nginx/conf.d/snipeit.conf +++ b/servers/apoc/docker-compose.d/custom/nginx/conf.d/snipeit.conf @@ -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; } } diff --git a/servers/apoc/docker-compose.d/docker-compose.snipeit.yml b/servers/apoc/docker-compose.d/docker-compose.snipeit.yml index 187906b..b65cc71 100644 --- a/servers/apoc/docker-compose.d/docker-compose.snipeit.yml +++ b/servers/apoc/docker-compose.d/docker-compose.snipeit.yml @@ -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: