49 lines
1.4 KiB
Text
49 lines
1.4 KiB
Text
server {
|
|
access_log /var/log/nginx/ayaya.beauty.log combined;
|
|
error_log /var/log/nginx/ayaya.beauty.error.log;
|
|
|
|
server_name ayaya.beauty;
|
|
include configs/general.conf;
|
|
include configs/securityheaders.conf;
|
|
|
|
root /var/www/uguu/dist/public/;
|
|
autoindex off;
|
|
# access_log off;
|
|
index index.html index.php;
|
|
|
|
client_max_body_size 64M;
|
|
|
|
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;
|
|
}
|
|
|
|
listen 443 http3;
|
|
listen 443 http2 ssl; # managed by Certbot
|
|
ssl_certificate /etc/letsencrypt/live/ayaya.beauty/fullchain.pem; # managed by Certbot
|
|
ssl_certificate_key /etc/letsencrypt/live/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 = ayaya.beauty) {
|
|
return 301 https://$host$request_uri;
|
|
} # managed by Certbot
|
|
|
|
|
|
listen 80;
|
|
server_name ayaya.beauty;
|
|
return 404; # managed by Certbot
|
|
|
|
|
|
}
|