Prepare for vaultwarden selfhosting
This commit is contained in:
parent
2bf3acc33a
commit
3e864be584
6 changed files with 13 additions and 12 deletions
modules/nixos
|
@ -1,13 +1,13 @@
|
|||
{ lib, ... }: {
|
||||
options.satellite.proxy = lib.mkOption {
|
||||
type = lib.types.functionTo lib.types.anything;
|
||||
type = lib.types.functionTo (lib.types.functionTo lib.types.anything);
|
||||
description = "Helper function for generating a quick proxy config";
|
||||
};
|
||||
|
||||
config.satellite.proxy = port: {
|
||||
config.satellite.proxy = port: extra: {
|
||||
enableACME = true;
|
||||
acmeRoot = null;
|
||||
forceSSL = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:${toString port}";
|
||||
locations."/" = { proxyPass = "http://127.0.0.1:${toString port}"; } // extra;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue