add: nginx conf file adjustments

main
w2 4 years ago
parent e538c09336
commit 10b12dd236

@ -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`

Loading…
Cancel
Save