Embed STUN and SFU in the shared Go process, reuse native encoding pipelines with independent adaptation, and complete Client lifecycle, settings, diagnostics and packaging fixes. Retain standard Browser senders after measured encoded-reuse limitations.
74 lines
2.3 KiB
Plaintext
74 lines
2.3 KiB
Plaintext
map $http_upgrade $screener_connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
limit_req_zone $binary_remote_addr zone=screener_site_access:10m rate=5r/m;
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name share.bonfire.icu;
|
|
|
|
location ^~ /.well-known/acme-challenge/ {
|
|
root /var/www/letsencrypt;
|
|
default_type text/plain;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://share.bonfire.icu$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name share.bonfire.icu;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/share.bonfire.icu/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/share.bonfire.icu/privkey.pem;
|
|
include /etc/letsencrypt/options-ssl-nginx.conf;
|
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
|
|
|
access_log /var/log/nginx/screener.access.log;
|
|
error_log /var/log/nginx/screener.error.log warn;
|
|
|
|
add_header Strict-Transport-Security "max-age=31536000" always;
|
|
add_header X-Content-Type-Options "nosniff" always;
|
|
add_header Referrer-Policy "no-referrer" always;
|
|
add_header X-Frame-Options "DENY" always;
|
|
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
|
|
|
|
# Media uses /signal. Reject credential-bearing RTC query endpoints without
|
|
# persisting their query strings, including requests from already-open pages.
|
|
location ~ ^/rtc(?:/|$) {
|
|
access_log off;
|
|
error_log /dev/null crit;
|
|
return 404;
|
|
}
|
|
|
|
location = /api/site-access {
|
|
limit_req zone=screener_site_access burst=5 nodelay;
|
|
limit_req_status 429;
|
|
proxy_pass http://127.0.0.1:8787;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
proxy_buffering off;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8787;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $screener_connection_upgrade;
|
|
proxy_read_timeout 5h;
|
|
proxy_send_timeout 5h;
|
|
proxy_buffering off;
|
|
}
|
|
}
|