Add navidrome

This commit is contained in:
2023-12-01 09:03:33 +00:00
parent 902da05b4c
commit ff3be8c6d9
2 changed files with 44 additions and 0 deletions

View File

@@ -278,6 +278,13 @@ http {
server_name labs.${DOMAIN};
location / {
if ($http_origin ~* (https?://(?:www\.)?5e\.tools|https?://(?:www\.)?rec\.scarif\.space)) {
add_header 'Access-Control-Allow-Origin' "$http_origin";
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
}
proxy_pass http://gitea-handler;
}
}
@@ -302,6 +309,26 @@ http {
}
}
upstream navidrome-handler {
server navidrome:4533;
}
server {
listen 443 ssl http2;
ssl_certificate /etc/nginx/certs/${DOMAIN}.crt;
ssl_certificate_key /etc/nginx/certs/${DOMAIN}.key;
gzip_types text/plain text/css application/json application/x-javascript
text/xml application/xml application/xml+rss text/javascript;
server_name radio.${DOMAIN};
location / {
proxy_pass http://navidrome-handler;
}
}
upstream tt-rss-handler {
server tt-rss:9000;
}