2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2025-01-23 23:28:27 +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 {
server ${FRAPPE_SOCKETIO}:${FRAPPE_SOCKETIO_PORT} fail_timeout=0;
server ${FRAPPE_SOCKETIO}:${SOCKETIO_PORT} fail_timeout=0;
}
server {

View File

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

View File

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

View File

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

View File

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