update environment configuration, enhance setup guide, and align documentation with new domain structure

This commit is contained in:
zwitschi committed 2026-08-03 14:09:51 +02:00
1 parent c484b463e3
commit 2e061dff28
13 files changed
+267 -46

No files matched your search

+24 -6
View File
@@ -3,11 +3,25 @@ events {
}
http {
resolver 127.0.0.11 ipv6=off valid=30s;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
server_name localhost;
server_name www.linearvoid.tv;
root /usr/share/nginx/html;
return 301 https://linearvoid.tv$request_uri;
}
server {
listen 80 default_server;
server_name linearvoid.tv localhost 127.0.0.1;
root /srv/frontend;
index index.html;
# Serve static frontend
@@ -17,16 +31,20 @@ http {
# Proxy chat WebSocket
location /ws {
proxy_pass http://chat:3000;
set $chat_upstream http://chat:3000;
proxy_pass $chat_upstream;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
# Serve HLS from playout (with cache headers for Cloudflare)
# Local/dev fallback HLS origin. Production media should use MEDIA_DOMAIN.
location /hls/ {
alias /usr/share/nginx/html/hls/;
alias /srv/hls/;
add_header Cache-Control "public, max-age=3600";
add_header Access-Control-Allow-Origin "*";
}