committed powerdns web changes

This commit is contained in:
mc-fucker 2025-03-10 11:13:33 +01:00
parent f1feebbbca
commit 35a5f48150
2 changed files with 24 additions and 20 deletions

View file

@ -6,7 +6,7 @@ let
in in
{ {
imports = [ imports = [
./podman.nix #./podman.nix
./podman-postgresql.nix # for the database ./podman-postgresql.nix # for the database
#./nginx.nix # for the webserver #./nginx.nix # for the webserver
]; ];
@ -14,24 +14,24 @@ in
sops.secrets."powerdns-admin/db" = { }; sops.secrets."powerdns-admin/db" = { };
sops.secrets."powerdns-admin/env" = { }; sops.secrets."powerdns-admin/env" = { };
#services.podman-postgresql."${pdnsa_database}" = { services.podman-postgresql."powerdnsadmin" = {
# enable = true; enable = true;
# image = "docker.io/library/postgres:15-alpine"; image = "docker.io/library/postgres:15-alpine";
# port = (lib.strings.toInt webdbport); port = (lib.strings.toInt webdbport);
# passwordFile = config.sops.secrets."powerdns-admin/db".path; passwordFile = config.sops.secrets."powerdns-admin/db".path;
#}; };
#virtualisation.oci-containers.containers.powerdnsadmin = { virtualisation.oci-containers.containers.powerdnsadmin = {
# image = "docker.io/powerdnsadmin/pda-legacy"; image = "docker.io/powerdnsadmin/pda-legacy";
# environment = { environment = {
# TZ = "Europe/Berlin"; TZ = "Europe/Berlin";
# }; };
# environmentFiles = [ config.sops.secrets."powerdns-admin/env".path ]; environmentFiles = [ config.sops.secrets."powerdns-admin/env".path ];
# ports = [ ports = [
# "${webport}:80" "${webport}:80"
# ]; ];
# extraOptions = cfg.podman.extraOptions; extraOptions = cfg.podman.extraOptions;
#}; };
} }
# vim: set et ts=2 sw=2 ai: # vim: set et ts=2 sw=2 ai:

View file

@ -1,10 +1,14 @@
{ ... }: { ... }:
let let
domain = "powerdns.mc-fucker.cool"; domain = "powerdns.mc-fucker.cool";
pdnsa_host = "100.64.0.6"; #pdnsa_host = "100.64.0.6";
pdnsa_port = "8000"; pdnsa_host = "127.0.0.1";
pdnsa_port = "8282";
in in
{ {
imports = [ ./nginx.nix ];
services.nginx.virtualHosts."${domain}" = { services.nginx.virtualHosts."${domain}" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;