fix(arr): Fix websockets

This commit is contained in:
Madeleine Sydney
2025-05-12 01:24:17 -06:00
parent fcdeac41c9
commit 92ad3d295d
4 changed files with 37 additions and 13 deletions

2
flake.lock generated
View File

@@ -965,7 +965,7 @@
"nixpkgs": "nixpkgs_11" "nixpkgs": "nixpkgs_11"
}, },
"locked": { "locked": {
"lastModified": 1742246510, "lastModified": 1742862380,
"narHash": "sha256-h19Bg+BTV/51MiCnKa3rN3QbRC74cBWjBHhDrpVgdXM=", "narHash": "sha256-h19Bg+BTV/51MiCnKa3rN3QbRC74cBWjBHhDrpVgdXM=",
"path": "/persist/dots/scripts/sydnix-cli", "path": "/persist/dots/scripts/sydnix-cli",
"type": "path" "type": "path"

View File

@@ -43,6 +43,8 @@ in {
options = [ options = [
"vers=2.0" "vers=2.0"
"cred=/run/secrets/buffalo-nas-creds" "cred=/run/secrets/buffalo-nas-creds"
# Wait for network availability before attempting mount.
"_netdev"
# It appears that the group/user names used by Nixarr are hard-coded. # It appears that the group/user names used by Nixarr are hard-coded.
"gid=media" "gid=media"
"uid=streamer" "uid=streamer"

View File

@@ -17,14 +17,25 @@ in {
vhost = { vhost = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
extraConfig = '' # Per https://wiki.servarr.com/radarr/installation/reverse-proxy
# include ${../authelia/authelia-location.conf};
set $upstream http://127.0.0.1:7878;
'';
locations."/".extraConfig = '' locations."/".extraConfig = ''
# include ${../authelia/authelia-authrequest.conf};
# include ${../authelia/proxy.conf};
proxy_pass $upstream; proxy_pass $upstream;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
'';
locations."/api".extraConfig = ''
# Allow the API External Access via NGINX
auth_basic off;
proxy_pass $upstream;
'';
extraConfig = ''
set $upstream http://127.0.0.1:7878;
''; '';
}; };
}; };

View File

@@ -17,14 +17,25 @@ in {
vhost = { vhost = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
extraConfig = '' # Per https://wiki.servarr.com/radarr/installation/reverse-proxy
# include ${../authelia/authelia-location.conf};
set $upstream http://127.0.0.1:8989;
'';
locations."/".extraConfig = '' locations."/".extraConfig = ''
# include ${../authelia/authelia-authrequest.conf};
# include ${../authelia/proxy.conf};
proxy_pass $upstream; proxy_pass $upstream;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
'';
locations."/api".extraConfig = ''
# Allow the API External Access via NGINX
auth_basic off;
proxy_pass $upstream;
'';
extraConfig = ''
set $upstream http://127.0.0.1:8989;
''; '';
}; };
}; };