moving around
This commit is contained in:
parent
a668a1440a
commit
7a4d9bd372
|
@ -8,6 +8,15 @@ with lib;
|
|||
services = {
|
||||
nocodb = {
|
||||
enable = true;
|
||||
environments = {
|
||||
DB_URL="postgres:///nocodb?host=/run/postgresql";
|
||||
PORT = 9989;
|
||||
NC_PUBLIC_URL = "https://${dn}";
|
||||
NC_SMTP_FROM = "no-reply@mail.tfcconnection.org";
|
||||
NC_SMTP_HOST = "mail.tfcconnection.org";
|
||||
NC_SMTP_PORT = 587;
|
||||
NC_SMTP_USERNAME = "no-reply@mail.tfcconnection.org";
|
||||
}
|
||||
environmentFile = /nocoenv;
|
||||
};
|
||||
};
|
||||
|
@ -15,7 +24,7 @@ with lib;
|
|||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:9989";
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.nocodb.environments.PORT}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue