Add reverse proxy for music request frontend

This commit is contained in:
Ciapa 2024-01-05 20:44:50 +01:00
parent 8558ff9ab3
commit 1ef353f93f
1 changed files with 22 additions and 0 deletions

View File

@ -6,6 +6,28 @@
services.nginx = {
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" = {
serverName = "kinda.sus.lol";
locations = {