From 10b12dd236b761869914041f2f89d4e5e6629158 Mon Sep 17 00:00:00 2001 From: w2 Date: Sat, 25 Jun 2022 21:11:56 +0100 Subject: [PATCH] add: nginx conf file adjustments --- README.md | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index ea7f06a..e45c99f 100644 --- a/README.md +++ b/README.md @@ -6,19 +6,21 @@ - put `pg_dumpall --clean | gzip > db.out.gz` into ./init_db - fix treetalker/nodejs/config/config.env `HOST=` db address - `chown 999:999 postgres_data` -- replace `location /ppga {...}` block with -```nginx -location /ppga/ { - proxy_pass http://ppga:8080/; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection 'upgrade'; - proxy_set_header Host $host; - proxy_cache_bypass $http_upgrade; - - access_log /var/log/nginx/ppga.access.log; -} -``` +- fix treetalker.guideget.ru.conf: + - replace `proxy_pass http://localhost..` directives with container routing + - replace `location /ppga {...}` block with + ```nginx + location /ppga/ { + proxy_pass http://ppga:8080/; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection 'upgrade'; + proxy_set_header Host $host; + proxy_cache_bypass $http_upgrade; + + access_log /var/log/nginx/ppga.access.log; + } + ``` ## Clean up - delete ./node_modules dirs @@ -28,6 +30,7 @@ location /ppga/ { ## Dev setup - put options-ssl-nginx.conf into ./letsencrypt +- replace `$host` entries in treetalker.guideget.ru.conf to your develoment host ## Prod setup - disable `USE_LOCAL_CA=1`