updated nginx config

This commit is contained in:
ari melody 2024-02-18 17:31:10 +00:00
parent fb042156f0
commit 0fe1266671
Signed by: ari
GPG key ID: CF99829C92678188

View file

@ -1,18 +1,25 @@
server {
listen 80;
listen [::]:80;
server_name arimelody.me www.arimelody.me;
listen 80;
listen [::]:80;
root /web/arimelody/;
server_name arimelody.me www.arimelody.me;
access_log logs/arimelody.log;
client_max_body_size 0;
index index.html;
root /web/arimelody/;
add_header Cache-Control "max-age=14400";
client_max_body_size 0;
server_tokens off;
add_header Cache-Control "max-age=14400";
location / {
try_files $uri $uri/ $uri.html =404;
rewrite ^/music/(.*)$ https://mellodoot.com/music/$1 last;
}
server_tokens off;
location / {
try_files $uri $uri/ $uri.html =404;
rewrite ^/music/(.*)$ https://mellodoot.com/music/$1 last;
}
location = /give_me_money {
return 301 https://smokepowered.com;
}
}