2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 12:05:53 +00:00

Adds nxinx service

This commit is contained in:
Oliver Walters
2021-04-10 22:25:07 +10:00
parent 91b6f98f95
commit 5d9e273559
4 changed files with 61 additions and 3 deletions

21
docker/nginx/nginx.conf Normal file
View File

@ -0,0 +1,21 @@
upstream inventree {
server inventree:8080;
}
server {
listen 80;
location / {
proxy_pass http://inventree;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
client_max_body_size 100M;
}
location /static/ {
alias /home/inventree/static/;
}
}