We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3809570 commit fff6ee6Copy full SHA for fff6ee6
docker-compose-local.yml
@@ -44,9 +44,6 @@ services:
44
env_file:
45
- .env
46
environment:
47
- POSTGRES_USER: ${PGUSER}
48
- POSTGRES_DB: ${PGDATABASE}
49
- POSTGRES_PASSWORD: ${PGPASSWORD}
50
PGDATA: /var/lib/postgresql/data
51
52
web:
nginx/env.sh
@@ -1,4 +1,6 @@
1
#!/bin/sh
2
3
+export dollar="$"
4
+export http_upgrade="http_upgrade"
5
envsubst < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf
6
exec nginx -g 'daemon off;'
nginx/nginx.conf.dev
@@ -19,7 +19,7 @@ http {
19
location / {
20
proxy_pass http://web:3000/;
21
proxy_http_version 1.1;
22
- proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Upgrade ${dollar}http_upgrade;
23
proxy_set_header Connection "upgrade";
24
}
25
0 commit comments