mirror of
https://git.tt-rss.org/fox/ttrss-docker-compose
synced 2025-06-12 16:19:59 +02:00
Rename env var to APP_UPSTREAM
This commit is contained in:
parent
ad8598d04b
commit
b8136830a1
2 changed files with 3 additions and 3 deletions
|
@ -5,8 +5,8 @@ HEALTHCHECK CMD curl --fail http://localhost/tt-rss/index.php || exit 1
|
||||||
COPY nginx.conf /etc/nginx/templates/nginx.conf.template
|
COPY nginx.conf /etc/nginx/templates/nginx.conf.template
|
||||||
|
|
||||||
# By default, nginx will send the php requests to "app" server, but this server
|
# By default, nginx will send the php requests to "app" server, but this server
|
||||||
# name can be overridden at runtime by passing an APP_SERVERNAME env var
|
# name can be overridden at runtime by passing an APP_UPSTREAM env var
|
||||||
ENV APP_SERVERNAME=${APP_SERVERNAME:-app}
|
ENV APP_UPSTREAM=${APP_UPSTREAM:-app}
|
||||||
|
|
||||||
# It's necessary to set the following NGINX_ENVSUBST_OUTPUT_DIR env var to tell
|
# It's necessary to set the following NGINX_ENVSUBST_OUTPUT_DIR env var to tell
|
||||||
# nginx to replace the env vars of /etc/nginx/templates/nginx.conf.template
|
# nginx to replace the env vars of /etc/nginx/templates/nginx.conf.template
|
||||||
|
|
|
@ -17,7 +17,7 @@ http {
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
upstream app {
|
upstream app {
|
||||||
server ${APP_SERVERNAME}:9000;
|
server ${APP_UPSTREAM}:9000;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue