Skip to content
Snippets Groups Projects
Commit 68777dd5 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

refactor(docker): rename CP_HOST_BACK to CP_APP_HOSTNAME

parent 65e9c0b0
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
if [ -z "${CP_HOST_BACK}" ]
if [ -z "${CP_APP_HOSTNAME}" ]
then
echo "CP_HOST_BACK is empty, using default"
CP_HOST_BACK="back"
echo "CP_APP_HOSTNAME is empty, using default"
CP_APP_HOSTNAME="app"
fi
sed -i "s/CP_HOST_BACK/${CP_HOST_BACK}/" /etc/nginx/nginx.conf
sed -i "s/CP_APP_HOSTNAME/${CP_APP_HOSTNAME}/" /etc/nginx/nginx.conf
nginx -g "daemon off;"
......@@ -27,7 +27,7 @@ http {
real_ip_header X-Real-IP;
upstream php-handler {
server CP_HOST_BACK:9000;
server CP_APP_HOSTNAME:9000;
}
server {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment