1
0
Fork 0

refactor(greatyamada): Change port definitions format

This commit is contained in:
Avery 2025-07-22 12:30:44 +02:00
parent f71272abe5
commit 0e6432592d
Signed by: Avery
GPG key ID: B684FD451B692E04
12 changed files with 64 additions and 60 deletions

View file

@ -1,6 +1,6 @@
{ ... }:
let
_portDefinitions = import ./_port-definitions.nix;
ports = import ./_port-definitions.nix;
nginxLocalConfig = import ./nginx-local-config.nix;
in {
services = {
@ -9,11 +9,11 @@ in {
initialEmail = "avery@localhost";
initialPasswordFile = "/dev/null";
minimumPasswordLength = 0;
port = _portDefinitions.pgadmin;
port = ports.tcp.pgadmin;
};
nginx.virtualHosts."pgadmin.rcia.dev" = {
locations."/".proxyPass =
"http://localhost:${toString _portDefinitions.pgadmin}";
"http://localhost:${toString ports.tcp.pgadmin}";
forceSSL = true;
useACMEHost = "rcia.dev";
extraConfig = nginxLocalConfig;