From 51dd57ea5fe47972e1695dfb6445992e26dc2c0e Mon Sep 17 00:00:00 2001 From: Fijxu Date: Fri, 30 Dec 2022 03:52:58 -0300 Subject: [PATCH] asd --- nginx/sites-available/ayaya.beauty.conf | 22 +++++++++++ nginx/sites-available/i.ayaya.beauty.conf | 9 +++++ .../sites-available/stream.ayaya.beauty.conf | 37 +++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 nginx/sites-available/ayaya.beauty.conf create mode 100644 nginx/sites-available/i.ayaya.beauty.conf create mode 100755 nginx/sites-available/stream.ayaya.beauty.conf diff --git a/nginx/sites-available/ayaya.beauty.conf b/nginx/sites-available/ayaya.beauty.conf new file mode 100644 index 0000000..1e5c441 --- /dev/null +++ b/nginx/sites-available/ayaya.beauty.conf @@ -0,0 +1,22 @@ +server { + listen 80; + server_name ayaya.beauty; + + root /var/www/uguu/dist/public/; + autoindex off; + access_log off; + index index.html index.php; + + location ~* \.(css|js|jpg|jpeg|gif|png|ico|xml|eot|woff|woff2|ttf|svg|otf|x-icon|avif|webp|apng)$ { + expires 30d; + } + + location ~* \.php$ { + fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; + fastcgi_intercept_errors on; + fastcgi_index index.php; + fastcgi_split_path_info ^(.+\.php)(.*)$; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + } +} diff --git a/nginx/sites-available/i.ayaya.beauty.conf b/nginx/sites-available/i.ayaya.beauty.conf new file mode 100644 index 0000000..a0abe2b --- /dev/null +++ b/nginx/sites-available/i.ayaya.beauty.conf @@ -0,0 +1,9 @@ +server { + listen 80; + server_name i.ayaya.beauty; + + root /var/www/files/; + autoindex off; + access_log off; + index index.html; +} diff --git a/nginx/sites-available/stream.ayaya.beauty.conf b/nginx/sites-available/stream.ayaya.beauty.conf new file mode 100755 index 0000000..d751f10 --- /dev/null +++ b/nginx/sites-available/stream.ayaya.beauty.conf @@ -0,0 +1,37 @@ +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 + + + }