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`