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