explicitly set resolver in the nginx container (configurable envvar)

This commit is contained in:
Andrew Dolgov 2023-11-07 08:38:11 +03:00
parent ff4248b09e
commit 61910acbcd
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
2 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,9 @@ ENV APP_WEB_ROOT=${APP_WEB_ROOT:-/var/www/html}
# Base location for tt-rss (defaults to /tt-rss)
ENV APP_BASE=${APP_BASE:-/tt-rss}
# Resolver for nginx (kube-dns.kube-system.svc.cluster.local for k8s)
ENV RESOLVER=${RESOLVER:-127.0.0.11}
# In order to make tt-rss appear on website root without /tt-rss/ set above as follows in .env:
# APP_WEB_ROOT=/var/www/html/tt-rss
# APP_BASE=

View File

@ -16,6 +16,8 @@ http {
index index.php;
resolver ${RESOLVER} valid=5s;
upstream app {
server ${APP_UPSTREAM}:9000;
}