Update greatyamada config
This commit is contained in:
parent
5c4921895e
commit
97bf3bb177
22 changed files with 556 additions and 212 deletions
21
hosts/greatyamada/services/pgadmin.nix
Normal file
21
hosts/greatyamada/services/pgadmin.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ ... }:
|
||||
let
|
||||
_portDefinitions = import ./_port-definitions.nix;
|
||||
nginxLocalConfig = import ./nginx-local-config.nix;
|
||||
in {
|
||||
services = {
|
||||
pgadmin = {
|
||||
enable = true;
|
||||
initialEmail = "avery@rcia.dev";
|
||||
initialPasswordFile = "/etc/nixos/a.txt";
|
||||
port = _portDefinitions.pgadmin;
|
||||
};
|
||||
nginx.virtualHosts."pgadmin.rcia.dev" = {
|
||||
locations."/".proxyPass =
|
||||
"http://localhost:${toString _portDefinitions.pgadmin}";
|
||||
forceSSL = true;
|
||||
useACMEHost = "rcia.dev";
|
||||
extraConfig = nginxLocalConfig;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue