- Services: Added Part-DB
- Implementation: Added nix-sops based secret version controlling.
This commit is contained in:
parent
99a0ed1719
commit
5e68e6ee96
19 changed files with 258 additions and 86 deletions
|
|
@ -136,13 +136,14 @@
|
|||
services.postgresql = {
|
||||
enable = true;
|
||||
enableTCPIP = true;
|
||||
ensureDatabases = ["forgejo"];
|
||||
ensureDatabases = ["forgejo" "part_db_database"];
|
||||
settings = {
|
||||
listen_addresses = "*";
|
||||
};
|
||||
authentication = pkgs.lib.mkOverride 10 ''
|
||||
local all all trust
|
||||
host all all 10.1.1.4/32 scram-sha-256
|
||||
host all all 10.1.1.249/32 scram-sha-256
|
||||
host all all 127.0.0.1/32 trust
|
||||
host all all ::1/128 trust
|
||||
'';
|
||||
|
|
@ -158,7 +159,7 @@
|
|||
services.openssh.enable = true;
|
||||
|
||||
# Open ports in the firewall.
|
||||
networking.firewall.allowedTCPPorts = [5432 3306]; # PostgreSQL default port
|
||||
networking.firewall.allowedTCPPorts = [5432 3306]; # PostgreSQL and MariaDB default port
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
# networking.firewall.enable = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue