39 lines
774 B
Plaintext
39 lines
774 B
Plaintext
server {
|
|
|
|
server_name cytube.zzls.xyz;
|
|
include configs/general.conf;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:40023;
|
|
include configs/proxyheaders.conf;
|
|
}
|
|
|
|
location ^~ /socket {
|
|
proxy_pass http://localhost:40024;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
}
|
|
|
|
#include configs/securityheaders.conf;
|
|
# QUIC
|
|
add_header Alt-Svc 'h3=":443"; ma=86400';
|
|
|
|
|
|
listen 443 ssl http2;
|
|
|
|
}
|
|
server {
|
|
if ($host = cytube.zzls.xyz) {
|
|
return 301 https://$host$request_uri;
|
|
|
|
|
|
listen 80;
|
|
|
|
server_name cytube.zzls.xyz;
|
|
|
|
|
|
}
|