Initial commit
This commit is contained in:
47
configuration.nix
Normal file
47
configuration.nix
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
imports = [
|
||||
./formatters
|
||||
];
|
||||
|
||||
services.simple-app = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
port = 8080;
|
||||
host = "0.0.0.0";
|
||||
};
|
||||
logging = {
|
||||
level = "info";
|
||||
file = "/var/log/simple-app.log";
|
||||
};
|
||||
};
|
||||
};
|
||||
services.validated-app = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
port = 8080;
|
||||
host = "0.0.0.0";
|
||||
};
|
||||
logging = {
|
||||
level = "info";
|
||||
file = "/var/log/simple-app.log";
|
||||
};
|
||||
};
|
||||
};
|
||||
services.multi-config-app = {
|
||||
enable = true;
|
||||
serverSettings = {
|
||||
port = 8000;
|
||||
host = "0.0.0.0";
|
||||
};
|
||||
databaseSettings = {
|
||||
url = "postgres://localhost/myapp";
|
||||
maxConnections = 50;
|
||||
};
|
||||
loggingSettings = {
|
||||
level = "warn";
|
||||
format = "text";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user