fix(nixin-web): use wireguard ips for listen

This commit is contained in:
Florian Schmitt 2024-12-27 11:45:04 +03:00
parent 5873dcac0f
commit 753400ea5f

View file

@ -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;
}