2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-04-28 05:36:46 +00:00
2021-04-18 18:41:56 +10:00

24 lines
523 B
Nginx Configuration File

upstream inventree {
# Should point to the InvenTree web server container
server inventree:8000;
}
server {
# Listen for connection on (internal) port 80
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;
}
# Redirect any requests for static files
location /static/ {
alias /var/www/static/;
}
}