38 lines
1.1 KiB
Plaintext
Executable File
38 lines
1.1 KiB
Plaintext
Executable File
server {
|
|
access_log /var/log/nginx/stream.ayaya.beauty.access.log combined;
|
|
error_log /var/log/nginx/stream.ayaya.beauty.error.log;
|
|
|
|
root /var/www/stream/;
|
|
index index.html index.htm index.nginx-debian.html;
|
|
|
|
server_name stream.ayaya.beauty;
|
|
include configs/general.conf;
|
|
include configs/securityheaders.conf;
|
|
|
|
location /stream {
|
|
proxy_pass http://localhost:8080/live/livestream/stream.flv;
|
|
include configs/proxyheaders.conf;
|
|
}
|
|
|
|
listen 443 http3;
|
|
listen 443 ssl http2; # managed by Certbot
|
|
ssl_certificate /etc/letsencrypt/live/stream.ayaya.beauty/fullchain.pem; # managed by Certbot
|
|
ssl_certificate_key /etc/letsencrypt/live/stream.ayaya.beauty/privkey.pem; # managed by Certbot
|
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
|
|
|
}
|
|
server {
|
|
if ($host = stream.ayaya.beauty) {
|
|
return 301 https://$host$request_uri;
|
|
} # managed by Certbot
|
|
|
|
|
|
listen 80;
|
|
|
|
server_name stream.ayaya.beauty;
|
|
return 404; # managed by Certbot
|
|
|
|
|
|
}
|