run gradient server and worker all in one
This commit is contained in:
parent
20b1103a6c
commit
b5329ad61f
3 changed files with 38 additions and 11 deletions
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
|
|
@ -51,7 +52,7 @@
|
|||
configurePostgres = true;
|
||||
configureNginx = true;
|
||||
# serveCache = true;
|
||||
reportErrors = true; # optional: will send crash reports to us
|
||||
reportErrors = true;
|
||||
|
||||
worker = {
|
||||
enable = true;
|
||||
|
|
@ -63,12 +64,19 @@
|
|||
eval = true;
|
||||
build = true;
|
||||
};
|
||||
packages.nix = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux.nix;
|
||||
settings = {
|
||||
logLevel.default = "debug";
|
||||
logLevel = {
|
||||
default = "debug";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nginx.commonHttpConfig = ''
|
||||
real_ip_header proxy_protocol;
|
||||
set_real_ip_from 141.56.51.1/32;
|
||||
'';
|
||||
nginx.virtualHosts."${config.networking.fqdn}".listen = [
|
||||
{
|
||||
port = 80;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue