tag(项目):添加配置内容readme等

This commit is contained in:
OrangeRoll
2026-08-07 15:27:16 +08:00
parent 895dc39ce9
commit 0f82920df0
10 changed files with 239 additions and 9 deletions
+48
View File
@@ -0,0 +1,48 @@
# Put the map block in nginx.conf's http {} section, only once.
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
server_name share.example.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
server_name share.example.com;
# Replace with your existing certificate paths.
ssl_certificate /etc/letsencrypt/live/share.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/share.example.com/privkey.pem;
location / {
proxy_pass http://127.0.0.1:5173;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
location /api/ {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
location /rtc/ {
proxy_pass http://127.0.0.1:7880;
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;
}
location /twirp/ {
proxy_pass http://127.0.0.1:7880;
proxy_set_header Host $host;
}
}