run gradient server and worker all in one

This commit is contained in:
goeranh 2026-05-03 13:50:47 +02:00
parent 20b1103a6c
commit b5329ad61f
No known key found for this signature in database
3 changed files with 38 additions and 11 deletions

View file

@ -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;