This commit is contained in:
Chris Cochrun 2025-05-16 07:23:47 -05:00
parent 35d6ce3453
commit 42c3512fad

View file

@ -10,11 +10,11 @@ with lib;
enable = true; enable = true;
environment = { environment = {
DB_URL="postgres:///nocodb?host=/run/postgresql"; DB_URL="postgres:///nocodb?host=/run/postgresql";
PORT = 9989; PORT = "9989";
NC_PUBLIC_URL = "https://${dn}"; NC_PUBLIC_URL = "https://${dn}";
NC_SMTP_FROM = "no-reply@mail.tfcconnection.org"; NC_SMTP_FROM = "no-reply@mail.tfcconnection.org";
NC_SMTP_HOST = "mail.tfcconnection.org"; NC_SMTP_HOST = "mail.tfcconnection.org";
NC_SMTP_PORT = 587; NC_SMTP_PORT = "587";
NC_SMTP_USERNAME = "no-reply@mail.tfcconnection.org"; NC_SMTP_USERNAME = "no-reply@mail.tfcconnection.org";
}; };
environmentFile = /nocoenv; environmentFile = /nocoenv;
@ -24,7 +24,7 @@ with lib;
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.nocodb.environment.PORT}"; proxyPass = "http://127.0.0.1:${config.services.nocodb.environment.PORT}";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };