1
Fork 0

Set up pounce on lapetus

This commit is contained in:
Matei Adriel 2024-01-31 21:59:11 +01:00
parent a175734015
commit 5de2395977
No known key found for this signature in database
10 changed files with 285 additions and 13 deletions
modules/nixos

13
modules/nixos/nginx.nix Normal file
View file

@ -0,0 +1,13 @@
{ lib, ... }: {
options.satellite.proxy = {
type = lib.types.functionTo lib.types.anything;
description = "Helper function for generating a quick proxy config";
};
config.satellite.proxy = port: {
enableACME = true;
acmeRoot = null;
forceSSL = true;
locations."/".proxyPass = "http://127.0.0.1:${toString port}";
};
}