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
494 B
Nginx Configuration File
Raw Normal View History

2023-10-02 05:30:54 +00:00
server {
listen 443 ssl;
server_name arimelody.me;
2023-10-02 05:30:54 +00:00
ssl_protocols TLSv1.2 TLSv1.3;
2023-10-02 05:30:54 +00:00
ssl_certificate /etc/nginx/ssl/arimelody.crt;
ssl_certificate_key /etc/nginx/ssl/arimelody.key;
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-10-14 22:26:26 +00:00
add_header Cache-Control "max-age=604800";
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;
}
}