2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2025-01-24 07:38:33 +00:00

fix: use SOCKETIO_PORT instead of FRAPPE_SOCKETIO_PORT

This commit is contained in:
Revant Nandgaonkar 2020-03-02 05:09:57 +05:30
parent c2c09400da
commit 0df0d6d11f
5 changed files with 9 additions and 9 deletions

View File

@ -3,7 +3,7 @@ upstream frappe-server {
} }
upstream socketio-server { upstream socketio-server {
server ${FRAPPE_SOCKETIO}:${FRAPPE_SOCKETIO_PORT} fail_timeout=0; server ${FRAPPE_SOCKETIO}:${SOCKETIO_PORT} fail_timeout=0;
} }
server { server {

View File

@ -25,8 +25,8 @@ if [[ -z "$FRAPPE_SOCKETIO" ]]; then
export FRAPPE_SOCKETIO=0.0.0.0 export FRAPPE_SOCKETIO=0.0.0.0
fi fi
if [[ -z "$FRAPPE_SOCKETIO_PORT" ]]; then if [[ -z "$SOCKETIO_PORT" ]]; then
export FRAPPE_SOCKETIO_PORT=9000 export SOCKETIO_PORT=9000
fi fi
envsubst '${API_HOST} envsubst '${API_HOST}
@ -34,7 +34,7 @@ envsubst '${API_HOST}
${FRAPPE_PY} ${FRAPPE_PY}
${FRAPPE_PY_PORT} ${FRAPPE_PY_PORT}
${FRAPPE_SOCKETIO} ${FRAPPE_SOCKETIO}
${FRAPPE_SOCKETIO_PORT}' \ ${SOCKETIO_PORT}' \
< /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf
exec "$@" exec "$@"

View File

@ -24,8 +24,8 @@ if [[ -z "$FRAPPE_SOCKETIO" ]]; then
export FRAPPE_SOCKETIO=0.0.0.0 export FRAPPE_SOCKETIO=0.0.0.0
fi fi
if [[ -z "$FRAPPE_SOCKETIO_PORT" ]]; then if [[ -z "$SOCKETIO_PORT" ]]; then
export FRAPPE_SOCKETIO_PORT=9000 export SOCKETIO_PORT=9000
fi fi
envsubst '${API_HOST} envsubst '${API_HOST}
@ -33,7 +33,7 @@ envsubst '${API_HOST}
${FRAPPE_PY} ${FRAPPE_PY}
${FRAPPE_PY_PORT} ${FRAPPE_PY_PORT}
${FRAPPE_SOCKETIO} ${FRAPPE_SOCKETIO}
${FRAPPE_SOCKETIO_PORT}' \ ${SOCKETIO_PORT}' \
< /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf
exec "$@" exec "$@"

View File

@ -8,7 +8,7 @@ services:
- FRAPPE_PY=erpnext-python - FRAPPE_PY=erpnext-python
- FRAPPE_PY_PORT=8000 - FRAPPE_PY_PORT=8000
- FRAPPE_SOCKETIO=frappe-socketio - FRAPPE_SOCKETIO=frappe-socketio
- FRAPPE_SOCKETIO_PORT=9000 - SOCKETIO_PORT=9000
- LETSENCRYPT_HOST=${SITES} - LETSENCRYPT_HOST=${SITES}
- VIRTUAL_HOST=${SITES} - VIRTUAL_HOST=${SITES}
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL} - LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}

View File

@ -8,7 +8,7 @@ services:
- FRAPPE_PY=frappe-python - FRAPPE_PY=frappe-python
- FRAPPE_PY_PORT=8000 - FRAPPE_PY_PORT=8000
- FRAPPE_SOCKETIO=frappe-socketio - FRAPPE_SOCKETIO=frappe-socketio
- FRAPPE_SOCKETIO_PORT=9000 - SOCKETIO_PORT=9000
- LETSENCRYPT_HOST=${SITES} - LETSENCRYPT_HOST=${SITES}
- VIRTUAL_HOST=${SITES} - VIRTUAL_HOST=${SITES}
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL} - LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}