37 lines
837 B
Plaintext
37 lines
837 B
Plaintext
server {
|
|
access_log /var/log/nginx/i.ayaya.beauty.access.log;
|
|
server_name i.ayaya.beauty;
|
|
root /mnt/ssd/i.ayaya.beauty/;
|
|
autoindex off;
|
|
index index.html;
|
|
include configs/general.conf;
|
|
include configs/security.conf;
|
|
include configs/robotsNone.conf;
|
|
|
|
location / {
|
|
rewrite ^/(.*)/$ /\$1 break;
|
|
try_files $uri $uri.jpg $uri.png $uri.gif $uri.css $uri.js $uri/ =404;
|
|
error_page 403 =301 https://ayaya.beauty;
|
|
error_page 404 =301 https://ayaya.beauty;
|
|
}
|
|
|
|
listen 443 ssl;
|
|
listen 443 quic;
|
|
http2 on;
|
|
ssl_certificate /etc/letsencrypt/live/i.ayaya.beauty/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/i.ayaya.beauty/privkey.pem;
|
|
include configs/sslConfig.conf;
|
|
|
|
}
|
|
|
|
server {
|
|
if ($host = i.ayaya.beauty) {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
listen 80;
|
|
server_name i.ayaya.beauty;
|
|
return 404;
|
|
|
|
}
|