web: Do not depend IP address of app
This commit is contained in:
parent
4bf0f4b64a
commit
928bcc25a1
@ -1,5 +1,4 @@
|
||||
#!/bin/bash
|
||||
echo Starting Nginx
|
||||
sed -Ei "s/PLATFORM_ADDR/$PLATFORM_PORT_80_TCP_ADDR/" /etc/nginx/sites-available/mattermost
|
||||
sed -Ei "s/PLATFORM_PORT/$PLATFORM_PORT_80_TCP_PORT/" /etc/nginx/sites-available/mattermost
|
||||
nginx -g 'daemon off;'
|
||||
|
@ -30,7 +30,7 @@ server {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Frame-Options SAMEORIGIN;
|
||||
proxy_pass http://PLATFORM_ADDR:PLATFORM_PORT;
|
||||
proxy_pass http://app:PLATFORM_PORT;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user