Compare commits

..

3 Commits

Author SHA1 Message Date
Ciapa 94759f48f7 Configure nginx for lidarr, deemix and navidrome
ci / test (push) Failing after 39s Details
ci / deploy (push) Has been skipped Details
2024-01-04 12:41:36 +01:00
Ciapa d662af337f Install navidrome 2024-01-04 12:39:39 +01:00
Ciapa bb905ea921 Use more up-to-date fork of lidarr 2024-01-04 12:30:45 +01:00
3 changed files with 63 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
virtualisation.oci-containers.containers = {
lidarr = {
image = "youegraillot/lidarr-on-steroids";
image = "resun83/lidarr-on-steroids";
autoStart = true;
ports = [
"127.0.0.1:8686:8686"
@ -15,4 +15,4 @@
];
};
};
}
}

View File

@ -0,0 +1,12 @@
{
services.navidrome = {
enable = true;
configuration = {
Address = "127.0.0.1";
Port = 4533;
MusicFolder = "/mnt/data/media/MusicNew";
BaseUrl = "https://kinda.sus.lol/music";
EnableSharing = true;
};
};
}

View File

@ -9,6 +9,21 @@
virtualHosts."kinda.sus.lol" = {
serverName = "kinda.sus.lol";
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" = {
extraConfig = ''
auth_basic "Show slit";
@ -43,6 +58,40 @@
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" = {
extraConfig = ''
auth_basic "Show slit";