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:
21
docker/nginx/nginx.conf
Normal file
21
docker/nginx/nginx.conf
Normal 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/;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user