Configure nginx for lidarr, deemix and navidrome
ci / test (push) Failing after 39s Details
ci / deploy (push) Has been skipped Details

This commit is contained in:
Ciapa 2024-01-04 12:41:36 +01:00
parent d662af337f
commit 94759f48f7
1 changed files with 49 additions and 0 deletions

View File

@ -9,6 +9,21 @@
virtualHosts."kinda.sus.lol" = { virtualHosts."kinda.sus.lol" = {
serverName = "kinda.sus.lol"; serverName = "kinda.sus.lol";
locations = { locations = {
"/music" = {
extraConfig = ''
proxy_pass http://127.0.0.1:4533;
proxy_read_timeout 900;
proxy_connect_timeout 900;
proxy_send_timeout 900;
send_timeout 900;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
'';
};
"/admin/sonarr" = { "/admin/sonarr" = {
extraConfig = '' extraConfig = ''
auth_basic "Show slit"; auth_basic "Show slit";
@ -43,6 +58,40 @@
proxy_set_header Connection $http_connection; proxy_set_header Connection $http_connection;
''; '';
}; };
"/admin/lidarr" = {
extraConfig = ''
auth_basic "Show slit";
auth_basic_user_file /run/secrets/services/nginx/admin.htpasswd;
proxy_pass http://127.0.0.1:8686;
proxy_read_timeout 900;
proxy_connect_timeout 900;
proxy_send_timeout 900;
send_timeout 900;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
'';
};
"/admin/deemix" = {
extraConfig = ''
auth_basic "Show slit";
auth_basic_user_file /run/secrets/services/nginx/admin.htpasswd;
proxy_pass http://127.0.0.1:6595;
proxy_read_timeout 900;
proxy_connect_timeout 900;
proxy_send_timeout 900;
send_timeout 900;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
'';
};
"/admin/prowlarr" = { "/admin/prowlarr" = {
extraConfig = '' extraConfig = ''
auth_basic "Show slit"; auth_basic "Show slit";