fix: snipeit reverse proxy
This commit is contained in:
parent
b251cc9894
commit
d2f01bbe03
2 changed files with 12 additions and 0 deletions
|
@ -7,5 +7,14 @@ 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 Connection $connection_upgrade;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Host $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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,8 +17,11 @@ services:
|
|||
APP_ENV: "production"
|
||||
APP_DEBUG: "false"
|
||||
PHP_UPLOAD_LIMIT: "100"
|
||||
APP_TRUSTED_PROXIES: "*"
|
||||
env_file:
|
||||
- /etc/ixvd/secrets/env/snipeit.env
|
||||
volumes:
|
||||
- /srv/snipeit/data:/var/lib/snipeit
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
|
|
Loading…
Reference in a new issue