From 753400ea5f5b609be451f5fc0d654c430151d181 Mon Sep 17 00:00:00 2001 From: Florian Schmitt Date: Fri, 27 Dec 2024 11:45:04 +0300 Subject: [PATCH] fix(nixin-web): use wireguard ips for listen --- modules/nixin-web.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/nixin-web.nix b/modules/nixin-web.nix index 8fb2ad7..24f9d87 100644 --- a/modules/nixin-web.nix +++ b/modules/nixin-web.nix @@ -1,5 +1,10 @@ # Nixin web site -{ config, pkgs, lib, ... }: +{ + config, + pkgs, + lib, + ... +}: let inherit (lib) mkOption mkDefault; @@ -32,12 +37,12 @@ in services.nginx.virtualHosts."${config.nixin.web.domain}" = { listen = [ { - addr = "127.0.0.1"; + addr = config.nixin.wg.client.ipv4; port = config.nixin.web.http-port; ssl = false; } { - addr = "[::1]"; + addr = "[${config.nixin.wg.client.ipv6}]"; port = config.nixin.web.http-port; ssl = false; }