Add reverse proxy for music request frontend
This commit is contained in:
parent
8558ff9ab3
commit
1ef353f93f
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue