2025-04-23 20:34:41 +08:00
|
|
|
|
#user nobody;
|
|
|
|
|
|
worker_processes 1;
|
|
|
|
|
|
|
|
|
|
|
|
#error_log logs/error.log;
|
|
|
|
|
|
#error_log logs/error.log notice;
|
|
|
|
|
|
#error_log logs/error.log info;
|
|
|
|
|
|
|
|
|
|
|
|
#pid logs/nginx.pid;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
events {
|
|
|
|
|
|
worker_connections 1024;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http {
|
|
|
|
|
|
include mime.types;
|
|
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
|
|
|
|
sendfile on;
|
|
|
|
|
|
#tcp_nopush on;
|
|
|
|
|
|
|
|
|
|
|
|
#keepalive_timeout 0;
|
|
|
|
|
|
keepalive_timeout 65;
|
|
|
|
|
|
|
|
|
|
|
|
#gzip on;
|
|
|
|
|
|
|
|
|
|
|
|
server {
|
|
|
|
|
|
listen 8080;
|
|
|
|
|
|
server_name localhost;
|
|
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
|
root /opt/dist;
|
|
|
|
|
|
index index.html index.htm;
|
|
|
|
|
|
}
|
|
|
|
|
|
location /record_proxy/{
|
|
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
|
proxy_pass http://polaris-wvp:18978/;
|
|
|
|
|
|
}
|
|
|
|
|
|
location /api/ {
|
|
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
|
proxy_pass http://polaris-wvp:18978;
|
|
|
|
|
|
}
|
2025-09-08 13:36:27 +08:00
|
|
|
|
|
|
|
|
|
|
# <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/rtp/<2F><>ͷ<EFBFBD><CDB7>·<EFBFBD><C2B7>
|
|
|
|
|
|
location ^~ /rtp/ {
|
|
|
|
|
|
# <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ZLMediakit<69><74><EFBFBD><EFBFBD>
|
|
|
|
|
|
proxy_pass http://polaris-media:80;
|
|
|
|
|
|
|
|
|
|
|
|
# <20><><EFBFBD><EFBFBD>HTTP<54><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
|
|
|
|
|
|
|
# WebSocket֧<74><D6A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
|
|
|
|
|
|
|
# <20><>ʱ<EFBFBD><CAB1><EFBFBD>ã<EFBFBD><C3A3><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
proxy_connect_timeout 60s;
|
|
|
|
|
|
proxy_read_timeout 3600s;
|
|
|
|
|
|
proxy_send_timeout 60s;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-04-23 20:34:41 +08:00
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
|
|
location = /50x.html {
|
|
|
|
|
|
root html;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|