server {
	listen 443 ssl;
	server_name arimelody.me;

	ssl_protocols TLSv1.2 TLSv1.3;

	ssl_certificate     /etc/nginx/ssl/arimelody.crt;
	ssl_certificate_key /etc/nginx/ssl/arimelody.key;

	root /usr/share/nginx/arimelody/;

	client_max_body_size 0;

	add_header Cache-Control "max-age=604800";

	location / {
		try_files $uri $uri/ $uri.html =404;
		rewrite ^/music/(.*)$ https://mellodoot.com/music/$1 last;
	}

	if ($scheme != "https") {
		return 301 https://$server_name$request_uri;
	}
}
