Skip to content

Commit

Permalink
fix(adguardhome): nginx ssl and websockets
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Oct 28, 2024
1 parent eb957ca commit 8db88bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/system/apps/adguardhome/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,10 @@ in
services.nginx.virtualHosts.adguard = {
useACMEHost = "wildcard.${config.mySystem.rootDomain}";
serverName = "adguard.${config.mySystem.rootDomain}";
forceSSL = true;
locations = {
"/" = {
proxyWebsockets = true;
extraConfig = ''
set $host_to_pass http://127.0.0.1:${builtins.toString config.services.adguardhome.port};
proxy_pass $host_to_pass;
Expand Down

0 comments on commit 8db88bf

Please sign in to comment.