fix(nixin-web): use wireguard ips for listen
This commit is contained in:
parent
5873dcac0f
commit
753400ea5f
1 changed files with 8 additions and 3 deletions
|
@ -1,5 +1,10 @@
|
||||||
# Nixin web site
|
# Nixin web site
|
||||||
{ config, pkgs, lib, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkOption mkDefault;
|
inherit (lib) mkOption mkDefault;
|
||||||
|
@ -32,12 +37,12 @@ in
|
||||||
services.nginx.virtualHosts."${config.nixin.web.domain}" = {
|
services.nginx.virtualHosts."${config.nixin.web.domain}" = {
|
||||||
listen = [
|
listen = [
|
||||||
{
|
{
|
||||||
addr = "127.0.0.1";
|
addr = config.nixin.wg.client.ipv4;
|
||||||
port = config.nixin.web.http-port;
|
port = config.nixin.web.http-port;
|
||||||
ssl = false;
|
ssl = false;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
addr = "[::1]";
|
addr = "[${config.nixin.wg.client.ipv6}]";
|
||||||
port = config.nixin.web.http-port;
|
port = config.nixin.web.http-port;
|
||||||
ssl = false;
|
ssl = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue