cleanup secrets

This commit is contained in:
Adithya 2023-11-12 15:04:59 +05:30
parent 7377f186f2
commit 2d280443e0
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
5 changed files with 19 additions and 8 deletions

View file

@ -11,11 +11,15 @@ in
enable = true;
interfaces = {
wg0 = {
inherit (peers."${config.networking.hostName}") ips listenPort;
ips = [
"10.8.1.3/24"
"fdd9:69ae:9703::3/64"
];
listenPort = 51821;
privateKeyFile = "/etc/wireguard/private.key";
generatePrivateKeyFile = true;
peers = with peers; [
Proxy.peer
Proxy
];
};
};

View file

@ -1,6 +1,5 @@
{ pkgs
, adtyaxyz
, secrets
, ...
}:
let
@ -25,7 +24,7 @@ in
handle /.well-known/discord {
header Access-Control-Allow-Origin *
respond `${secrets.discord_domain_well_known}`
respond `dh=bd67bb4659b662a5ee2b1b043e7b3171b2cb44bd`
}
handle {

View file

@ -11,11 +11,15 @@ in
enable = true;
interfaces = {
wg0 = {
inherit (peers."${config.networking.hostName}") ips listenPort;
ips = [
"10.8.1.4/24"
"fdd9:69ae:9703::4/64"
];
listenPort = 51821;
privateKeyFile = "/etc/wireguard/private.key";
generatePrivateKeyFile = true;
peers = with peers; [
Proxy.peer
Proxy
];
};
};

View file

@ -11,11 +11,15 @@ in
enable = true;
interfaces = {
wg0 = {
inherit (peers."${config.networking.hostName}") ips listenPort;
ips = [
"10.8.1.2/24"
"fdd9:69ae:9703::2/64"
];
listenPort = 51821;
privateKeyFile = "/etc/wireguard/private.key";
generatePrivateKeyFile = true;
peers = with peers; [
Proxy.peer
Proxy
];
};
};

Binary file not shown.