set pdns-admin listen address to 0.0.0.0
This commit is contained in:
parent
eaed19a61a
commit
6ffa7cfb74
1 changed files with 1 additions and 4 deletions
|
|
@ -31,6 +31,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
secretKeyFile = "/etc/nixos/keys/powerdns-secret";
|
secretKeyFile = "/etc/nixos/keys/powerdns-secret";
|
||||||
saltFile = "/etc/nixos/keys/powerdns-salt";
|
saltFile = "/etc/nixos/keys/powerdns-salt";
|
||||||
|
extraArgs = [ "-b" "0.0.0.0:8000" ];
|
||||||
config = ''
|
config = ''
|
||||||
SQLALCHEMY_DATABASE_URI = 'postgresql://${pdnsa_database}@/${pdnsa_database}?host=/run/postgresql'
|
SQLALCHEMY_DATABASE_URI = 'postgresql://${pdnsa_database}@/${pdnsa_database}?host=/run/postgresql'
|
||||||
'';
|
'';
|
||||||
|
|
@ -63,12 +64,8 @@ in
|
||||||
|
|
||||||
systemd.services."powerdns-admin" = {
|
systemd.services."powerdns-admin" = {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
# ExecStartPre = lib.mkForce "${pkgs.bash}/bin/bash -c 'ls -ahlp /run/postgresql/.s.PGSQL.5432'";
|
|
||||||
BindReadOnlyPaths = [ "/run/postgresql/.s.PGSQL.5432" ];
|
BindReadOnlyPaths = [ "/run/postgresql/.s.PGSQL.5432" ];
|
||||||
};
|
};
|
||||||
#preStart = lib.mkForce "ls -ahlp /run/postgresql/.s.PGSQL.5432";
|
|
||||||
#systemd.services.powerdns-admin = serviceConfig = {
|
|
||||||
#};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 53 ];
|
networking.firewall.allowedTCPPorts = [ 53 ];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue