mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-13 15:20:53 +00:00
.github
InvenTree
ci
deploy
docker
Dockerfile
docker-compose.yml
gunicorn.conf.py
nginx.conf
start_dev_server.sh
start_prod_server.sh
start_worker.sh
images
.coveragerc
.gitattributes
.gitignore
CONTRIBUTING.md
LICENSE
README.md
crowdin.yml
requirements.txt
setup.cfg
tasks.py
- Prepend "inventree" to the name of each container - Explicitly expose more env variables required for InvenTree db lookup - Adjust server name in nginx-conf file
37 lines
927 B
Nginx Configuration File
37 lines
927 B
Nginx Configuration File
server {
|
|
|
|
# Listen for connection on (internal) port 80
|
|
listen 80;
|
|
|
|
location / {
|
|
# 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-server:8000;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_redirect off;
|
|
|
|
client_max_body_size 100M;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_buffering off;
|
|
proxy_request_buffering off;
|
|
|
|
}
|
|
|
|
# Redirect any requests for static files
|
|
location /static/ {
|
|
alias /var/www/static/;
|
|
autoindex on;
|
|
|
|
# Caching settings
|
|
expires 30d;
|
|
add_header Pragma public;
|
|
add_header Cache-Control "public";
|
|
}
|
|
|
|
} |