moving around
This commit is contained in:
parent
a668a1440a
commit
7a4d9bd372
|
@ -8,6 +8,15 @@ with lib;
|
||||||
services = {
|
services = {
|
||||||
nocodb = {
|
nocodb = {
|
||||||
enable = true;
|
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;
|
environmentFile = /nocoenv;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -15,7 +24,7 @@ with lib;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:9989";
|
proxyPass = "http://127.0.0.1:${toString config.services.nocodb.environments.PORT}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue