etc-configs/nginx/sites-available/gatoculiao.ayaya.beauty.conf

85 lines
2.4 KiB
Plaintext

server {
server_name gatoculiao.ayaya.beauty;
include configs/general.conf;
include configs/security.conf;
root /var/www/gatoculiao.ayaya.beauty;
index index.html;
listen 443 ssl http2; # managed by Certbot
listen 443 quic;
ssl_certificate /etc/letsencrypt/live/gatoculiao.ayaya.beauty/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/gatoculiao.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 {
server_name vids.gatoculiao.ayaya.beauty;
include configs/general.conf;
include configs/security.conf;
location / {
root /mnt/storage/gatoculiaovideos;
index index.html index.php /_h5ai/public/index.php;
limit_rate 6400k;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_param HTTP_PROXY "";
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
location /_h5ai/private {
return 403;
}
}
listen 443 ssl http2; # managed by Certbot
listen 443 quic;
ssl_certificate /etc/letsencrypt/live/vids.gatoculiao.ayaya.beauty/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/vids.gatoculiao.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 = gatoculiao.ayaya.beauty) {
return 301 https://$host$request_uri;
}
# managed by Certbot
listen 80;
server_name gatoculiao.ayaya.beauty;
return 404; # managed by Certbot
}
server {
if ($host = vids.gatoculiao.ayaya.beauty) {
return 301 https://$host$request_uri;
}
# managed by Certbot
listen 80;
server_name vids.gatoculiao.ayaya.beauty;
return 404; # managed by Certbot
}