Compare commits

...

2 Commits

Author SHA1 Message Date
Ciapa 6b94be36bb Make Deemix download to final directory
ci / test (push) Successful in 58s Details
ci / deploy (push) Successful in 1m55s Details
update-flake-inputs / update-lockfile (push) Failing after 26s Details
2024-01-05 20:45:18 +01:00
Ciapa 1ef353f93f Add reverse proxy for music request frontend 2024-01-05 20:44:50 +01:00
2 changed files with 23 additions and 1 deletions

View File

@ -9,7 +9,7 @@
volumes = [ volumes = [
"/var/lib/deemix_standalone:/config_deemix" "/var/lib/deemix_standalone:/config_deemix"
"/var/lib/lidarr_standalone:/config" "/var/lib/lidarr_standalone:/config"
"/mnt/data/media/Music:/downloads" "/mnt/data/media/MusicNew:/downloads"
]; ];
}; };
}; };

View File

@ -6,6 +6,28 @@
services.nginx = { services.nginx = {
enable = true; enable = true;
virtualHosts."request-music.kinda.sus.lol" = {
serverName = "request-music.kinda.sus.lol";
locations = {
"/" = {
extraConfig = ''
auth_basic "That's kinda sus, not gonna lie...";
auth_basic_user_file /run/secrets/services/nginx/music.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;
'';
};
};
};
virtualHosts."kinda.sus.lol" = { virtualHosts."kinda.sus.lol" = {
serverName = "kinda.sus.lol"; serverName = "kinda.sus.lol";
locations = { locations = {