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

35 lines
916 B
Nginx Configuration File
Raw Normal View History

2023-10-02 05:30:54 +00:00
server {
2024-02-18 17:31:10 +00:00
listen 80;
listen [::]:80;
2023-10-02 05:30:54 +00:00
2024-02-18 17:31:10 +00:00
server_name arimelody.me www.arimelody.me;
2024-02-18 20:51:41 +00:00
# access_log logs/arimelody.log;
2023-10-02 05:30:54 +00:00
2024-02-18 17:31:10 +00:00
index index.html;
root /web/arimelody/;
2023-10-02 05:30:54 +00:00
2024-02-18 17:31:10 +00:00
client_max_body_size 0;
2023-10-14 22:26:26 +00:00
gzip on;
gzip_types text/plain application/xml text/css application/javascript;
gzip_proxied no-cache no-store private expired auth;
gzip_min_length 1000;
add_header Cache-Control "max-age=2628000";
2024-01-17 03:55:48 +00:00
2024-02-18 17:31:10 +00:00
server_tokens off;
location / {
try_files $uri $uri/ $uri.html =404;
rewrite ^/music/(.*)$ https://mellodoot.com/music/$1 last;
}
location ~* /img/buttons/.*.(png|ico|gif|jpg|jpeg)$ {
add_header Cache-Control "max-age=31536000";
}
2024-02-18 17:31:10 +00:00
location = /give_me_money {
return 301 https://smokepowered.com;
}
}