50 lines
1.1 KiB
Plaintext
50 lines
1.1 KiB
Plaintext
server {
|
|
server_name music.ayerh.art;
|
|
listen 443;
|
|
|
|
root /home/steve/ayerh.art/public/music.ayerh.art;
|
|
|
|
location ~ /.well-known {
|
|
allow all;
|
|
}
|
|
|
|
location / {
|
|
proxy_set_header Accept-Encoding "";
|
|
|
|
# TODO: handle params?
|
|
proxy_pass https://musicbrainz.org/ws/2/collection?editor=sayerhart
|
|
|
|
xslt_stylesheet /home/steve/ayerh.art/xslt/collections.xsl;
|
|
xslt_types *;
|
|
}
|
|
|
|
location ~* "^/(?<uuid>[a-f\d]{8}-[a-f\d]{4}-[a-f\d]{4}-[a-f\d]{4}-[a-f\d]{12})$" {
|
|
proxy_set_header Accept-Encoding "";
|
|
|
|
# TODO: handle params?
|
|
proxy_pass https://musicbrainz.org/ws/2/collection/$uuid/releases?inc=artist-credits+releases;
|
|
|
|
xslt_stylesheet /home/steve/ayerh.art/xslt/collection.xsl;
|
|
xslt_types *;
|
|
}
|
|
|
|
location ~* "^/.+" {
|
|
try_files $request_uri =404;
|
|
}
|
|
|
|
ssl_certificate {path-to-full-pem}
|
|
ssl_certificate_key {path-to-privkey}
|
|
}
|
|
|
|
server {
|
|
server_name music.ayerh.art;
|
|
|
|
if ($host = music.ayerh.art) {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
location ~ /.well-known {
|
|
allow all;
|
|
}
|
|
}
|