Browse Source

feat: change nginx config file for setup script usage

master
bucde 3 years ago
parent
commit
1d6e1da284
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      nginx.conf.orig

nginx.conf → nginx.conf.orig View File

@ -1,12 +1,9 @@
server { server {
# Listen for connection on (internal) port 80 # Listen for connection on (internal) port 80
listen 80; listen 80;
location / { 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_pass http://${INVENTREE_CORE_CONTAINER_NAME}:8000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
@ -46,7 +43,7 @@ server {
location /auth { location /auth {
internal; internal;
proxy_pass http://inventree-server:8000/auth/;
proxy_pass http://${INVENTREE_CORE_CONTAINER_NAME}:8000/auth/;
proxy_pass_request_body off; proxy_pass_request_body off;
proxy_set_header Content-Length ""; proxy_set_header Content-Length "";

Loading…
Cancel
Save