asd
This commit is contained in:
parent
46765e4546
commit
51dd57ea5f
3 changed files with 68 additions and 0 deletions
22
nginx/sites-available/ayaya.beauty.conf
Normal file
22
nginx/sites-available/ayaya.beauty.conf
Normal file
|
@ -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;
|
||||
}
|
||||
}
|
9
nginx/sites-available/i.ayaya.beauty.conf
Normal file
9
nginx/sites-available/i.ayaya.beauty.conf
Normal file
|
@ -0,0 +1,9 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name i.ayaya.beauty;
|
||||
|
||||
root /var/www/files/;
|
||||
autoindex off;
|
||||
access_log off;
|
||||
index index.html;
|
||||
}
|
37
nginx/sites-available/stream.ayaya.beauty.conf
Executable file
37
nginx/sites-available/stream.ayaya.beauty.conf
Executable file
|
@ -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
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue