24 lines
483 B
Text
Executable file
24 lines
483 B
Text
Executable file
server {
|
|
access_log /var/log/nginx/i.zzls.xyz.log combined;
|
|
|
|
server_name i.zzls.xyz;
|
|
include configs/general.conf;
|
|
include configs/security.conf;
|
|
|
|
location / {
|
|
rewrite ^/(.*)$ https://i.ayaya.beauty/$1 redirect;
|
|
}
|
|
|
|
listen 443 ssl;
|
|
http2 on
|
|
include configs/ssl.conf;
|
|
|
|
}
|
|
server {
|
|
if ($host = i.zzls.xyz) {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
server_name i.zzls.xyz;
|
|
listen 80;
|
|
return 404; # managed by Certbot
|
|
}
|