Skip to content

Commit

Permalink
feat: add facelive proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron3S authored and BaiJiangJie committed Nov 13, 2024
1 parent e8bca29 commit a6c47b8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions includes/facelive.conf
Original file line number Diff line number Diff line change
@@ -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;
}
4 changes: 4 additions & 0 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6c47b8

Please sign in to comment.