mirror of
git://f0xx.org/ac/ac-deploy
synced 2026-07-29 02:57:38 +03:00
nginx: add SFU signaling and Janus proxy locations to apps vhost
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -247,6 +247,43 @@ server {
|
|||||||
client_max_body_size 512m;
|
client_max_body_size 512m;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ── SFU signaling — Janus Gateway WebRTC backend ─────────────────────────
|
||||||
|
# REST API → PHP signaling service
|
||||||
|
location /app/androidcast_project/sfu/api/ {
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_pass 127.0.0.1:9000;
|
||||||
|
fastcgi_param SCRIPT_FILENAME /var/www/ac/workspace/ac-ms-sfu-signaling/public/index.php;
|
||||||
|
fastcgi_param SCRIPT_NAME /app/androidcast_project/sfu/index.php;
|
||||||
|
fastcgi_param REQUEST_URI $request_uri;
|
||||||
|
fastcgi_param HTTP_COOKIE $http_cookie;
|
||||||
|
fastcgi_param HTTP_AUTHORIZATION $http_authorization;
|
||||||
|
}
|
||||||
|
|
||||||
|
# WebSocket → Janus on cast02
|
||||||
|
location /app/androidcast_project/sfu/ws {
|
||||||
|
proxy_pass http://10.7.16.237:8188/;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection $connection_upgrade;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_read_timeout 3600s;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Catch-all SFU paths → PHP signaling front controller
|
||||||
|
location = /app/androidcast_project/sfu {
|
||||||
|
return 301 /app/androidcast_project/sfu/;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ^~ /app/androidcast_project/sfu/ {
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_pass 127.0.0.1:9000;
|
||||||
|
fastcgi_param SCRIPT_FILENAME /var/www/ac/workspace/ac-ms-sfu-signaling/public/index.php;
|
||||||
|
fastcgi_param SCRIPT_NAME /app/androidcast_project/sfu/index.php;
|
||||||
|
fastcgi_param REQUEST_URI $request_uri;
|
||||||
|
fastcgi_param HTTP_COOKIE $http_cookie;
|
||||||
|
fastcgi_param HTTP_AUTHORIZATION $http_authorization;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
include /etc/nginx/fastcgi.conf;
|
include /etc/nginx/fastcgi.conf;
|
||||||
fastcgi_pass 127.0.0.1:9000;
|
fastcgi_pass 127.0.0.1:9000;
|
||||||
|
|||||||
Reference in New Issue
Block a user