Set up pounce
on lapetus
This commit is contained in:
parent
a175734015
commit
5de2395977
10 changed files with 285 additions and 13 deletions
modules/nixos
13
modules/nixos/nginx.nix
Normal file
13
modules/nixos/nginx.nix
Normal 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}";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue