From b2a81eb1c9197cc57a3a64d436f7957af8ea6adb Mon Sep 17 00:00:00 2001 From: Raine Date: Mon, 1 Jan 2024 19:20:01 +0100 Subject: [PATCH] fix: copied snipeit nginx from github --- .../docker-compose.d/custom/nginx/conf.d/snipeit.conf | 9 +++------ 1 file changed, 3 insertions(+), 6 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 6922789..0ac51ee 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 @@ -6,14 +6,11 @@ server { # default html page location / { - proxy_pass http://snipeit; - proxy_read_timeout 300; - proxy_connect_timeout 300; proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Host $host; + 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 https; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_pass http://snipeit; } }