added homebox.
This commit is contained in:
parent
5661362a6f
commit
15d1f8c456
4 changed files with 41 additions and 2 deletions
30
configs/nixos/homebox.nix
Normal file
30
configs/nixos/homebox.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:let
|
||||
cfg = config.services.homebox;
|
||||
in {
|
||||
services.homebox={
|
||||
enable=true;
|
||||
settings={
|
||||
HBOX_OPTIONS_TRUST_PROXY = "true";
|
||||
HBOX_OPTIONS_HOSTNAME="inventory.venberg.xyz";
|
||||
HBOX_OPTIONS_CHECK_GITHUB_RELEASE = "false";
|
||||
HBOX_OPTIONS_ALLOW_REGISTRATION = "false";
|
||||
HBOX_MODE = "production";
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts.${cfg.settings.HBOX_OPTIONS_HOSTNAME} = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:7745";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue