cleanup
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
{ pkgs, service_configs, ... }:
|
||||
{
|
||||
pkgs,
|
||||
service_configs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
vpnNamespaces.wg = {
|
||||
portMappings = [
|
||||
@@ -30,6 +35,14 @@
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts.
|
||||
|
||||
"bitmagnet.${service_configs.https.domain}".extraConfig =
|
||||
''
|
||||
# tls internal
|
||||
${builtins.readFile ../secrets/caddy_auth}
|
||||
reverse_proxy ${service_configs.https.wg_ip}:${builtins.toString service_configs.ports.bitmagnet}
|
||||
'';
|
||||
systemd.services.bitmagnet.vpnConfinement = {
|
||||
enable = true;
|
||||
vpnNamespace = "wg";
|
||||
|
||||
Reference in New Issue
Block a user