summaryrefslogtreecommitdiff
path: root/.docker/web-nginx/nginx.conf
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-11-03 20:14:55 +0300
committerAndrew Dolgov <[email protected]>2023-11-03 20:14:55 +0300
commit9bbd7825ac162897f56aa6b6ec8a79b369db41ba (patch)
tree362b80164febf49afe710b316a5a987893688d5c /.docker/web-nginx/nginx.conf
parentedd60388639225e6f57e2276c33a7f7df968a1bf (diff)
make FPM upstream / web root configurable with envsubst like tt-rss
Diffstat (limited to '.docker/web-nginx/nginx.conf')
-rw-r--r--.docker/web-nginx/nginx.conf8
1 files changed, 4 insertions, 4 deletions
diff --git a/.docker/web-nginx/nginx.conf b/.docker/web-nginx/nginx.conf
index 12d526a..ee297fd 100644
--- a/.docker/web-nginx/nginx.conf
+++ b/.docker/web-nginx/nginx.conf
@@ -18,19 +18,19 @@ http {
index index.php;
upstream app {
- server app:9000;
+ server ${APP_UPSTREAM}:9000;
}
server {
listen 80;
listen [::]:80;
- root /var/www/html;
+ root ${APP_WEB_ROOT};
- location /books/db {
+ location ${APP_BASE}/db {
internal;
}
- location /books/sessions {
+ location ${APP_BASE}/sessions {
internal;
}