.env: add APPLICATION variable for nginx.conf

This commit is contained in:
vchikalkin 2023-10-24 11:49:30 +03:00
parent 9085fa39c8
commit c536ba630e
3 changed files with 4 additions and 1 deletions

1
.env
View File

@ -4,6 +4,7 @@ TRAEFIK_APP_NAME=
TRAEFIK_ENTRYPOINTS=web-secure
# TRAEFIK_ENTRYPOINTS=web-secure-ext
WEB_HOST=
APPLICATION=
# WEB
APP_BASE_PATH=/login

View File

@ -7,7 +7,7 @@ upstream api {
}
upstream app {
server application:80;
server $APPLICATION;
}
include /etc/nginx/include/upstream.conf;

View File

@ -41,6 +41,8 @@ services:
file: docker-compose.traefik.yml
service: server
image: nginx:alpine
environment:
- APPLICATION=${APPLICATION}
volumes:
- ./config/nginx.conf:/etc/nginx/templates/default.conf.template
- ./config/include:/etc/nginx/include