多用户网页直播平台:OBS/FFmpeg 鉴权 RTMP 推流到 SRS,HLS 低延迟播放; Fastify 5 + Prisma + PostgreSQL + Redis 后端,Vue 3 前端,Docker Compose 部署。
21 lines
689 B
Nginx Configuration File
21 lines
689 B
Nginx Configuration File
user nginx;
|
|
worker_processes auto;
|
|
error_log /var/log/nginx/error.log warn;
|
|
pid /var/run/nginx.pid;
|
|
events { worker_connections 2048; }
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
log_format main '$remote_addr - $request_id [$time_local] "$request" $status $body_bytes_sent';
|
|
access_log /var/log/nginx/access.log main;
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
keepalive_timeout 65;
|
|
client_max_body_size 10m;
|
|
server_tokens off;
|
|
gzip on;
|
|
gzip_types text/plain text/css application/json application/javascript application/vnd.apple.mpegurl;
|
|
map $http_upgrade $connection_upgrade { default upgrade; '' close; }
|
|
include /etc/nginx/conf.d/*.conf;
|
|
}
|