ayerh.art/nginx/music.ayerh.art.conf

50 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-11-21 19:39:22 -05:00
server {
server_name music.ayerh.art;
listen 443;
2020-11-23 21:50:53 -05:00
root /home/steve/ayerh.art/public/music.ayerh.art;
2020-11-21 19:39:22 -05:00
location ~ /.well-known {
allow all;
}
location / {
proxy_set_header Accept-Encoding "";
# TODO: handle params?
2020-11-23 21:50:53 -05:00
proxy_pass https://musicbrainz.org/ws/2/collection?editor=sayerhart
2020-11-21 19:39:22 -05:00
2020-11-23 21:50:53 -05:00
xslt_stylesheet /home/steve/ayerh.art/xslt/collections.xsl;
2020-11-21 19:39:22 -05:00
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;
2020-11-23 21:50:53 -05:00
xslt_stylesheet /home/steve/ayerh.art/xslt/collection.xsl;
2020-11-21 19:39:22 -05:00
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;
}
}