2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-06-13 02:35:29 +00:00

Update docker instructions to match latest docker image

This commit is contained in:
Oliver Walters
2021-04-22 13:34:27 +10:00
parent 6d6a545620
commit 10ed1bf64f
3 changed files with 57 additions and 44 deletions

View File

@ -4,9 +4,9 @@ server {
listen 80;
location / {
# Change 'inventree' to the name of the inventree server container,
# Change 'inventree-server' to the name of the inventree server container,
# and '8000' to the INVENTREE_WEB_PORT (if not default)
proxy_pass http://inventree:8000;
proxy_pass http://inventree-server:8000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
@ -27,6 +27,11 @@ server {
location /static/ {
alias /var/www/static/;
autoindex on;
# Caching settings
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
}
}