This repository has been archived on 2024-09-04. You can view files and clone it, but cannot push or open issues or pull requests.
arimelody.me-static/nginx.conf

25 lines
557 B
Nginx Configuration File
Raw Normal View History

2023-10-02 05:30:54 +00:00
server {
listen 443 ssl;
2023-11-27 23:29:21 +00:00
server_name arimelody.me www.arimelody.me;
2023-10-02 05:30:54 +00:00
2023-11-27 23:29:21 +00:00
ssl_certificate /etc/nginx/ssl/arimelody.crt;
ssl_certificate_key /etc/nginx/ssl/arimelody.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
2023-10-02 05:30:54 +00:00
root /usr/share/nginx/arimelody/;
2023-10-02 05:30:54 +00:00
client_max_body_size 0;
2023-10-02 05:30:54 +00:00
2023-11-27 23:29:21 +00:00
add_header Cache-Control "max-age=14400";
2023-10-14 22:26:26 +00:00
location / {
try_files $uri $uri/ $uri.html =404;
2023-10-14 22:26:26 +00:00
rewrite ^/music/(.*)$ https://mellodoot.com/music/$1 last;
}
2023-10-02 05:30:54 +00:00
if ($scheme != "https") {
return 301 https://$server_name$request_uri;
}
}