diff --git a/includes/facelive.conf b/includes/facelive.conf new file mode 100644 index 0000000..45ebe87 --- /dev/null +++ b/includes/facelive.conf @@ -0,0 +1,15 @@ +location /facelive/ { + proxy_pass http://facelive:9999; + proxy_buffering off; + proxy_http_version 1.1; + proxy_request_buffering off; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_ignore_client_abort on; + proxy_connect_timeout 600; + proxy_send_timeout 600; + proxy_read_timeout 600; + send_timeout 6000; +} diff --git a/init.sh b/init.sh index eb0cbc2..5b79b4b 100755 --- a/init.sh +++ b/init.sh @@ -134,6 +134,10 @@ function config_components() { safe_move /etc/nginx/includes/chen.conf /etc/nginx/includes/chen.conf.disabled fi + if [ "${FACELIVE_ENABLED}" == "0" ]; then + safe_move /etc/nginx/includes/facelive.conf /etc/nginx/includes/facelive.conf.disabled + fi + if [[ "${USE_XPACK}" == "1" && "${RAZOR_ENABLED}" != "0" ]]; then safe_move /etc/nginx/includes/razor.conf.disabled /etc/nginx/includes/razor.conf fi