mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
35 lines
720 B
Nix
35 lines
720 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
services = {
|
|
nginx = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
virtualHosts = {
|
|
"homebox.wanderingcrow.net" = {
|
|
forceSSL = true;
|
|
useACMEHost = "homebox.wanderingcrow.net";
|
|
locations."/" = {
|
|
extraConfig = ''
|
|
allow 192.168.0.0/16;
|
|
allow 10.8.0.0/24;
|
|
allow 172.220.132.255;
|
|
deny all;
|
|
'';
|
|
proxyPass = "http://localhost:7745";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
homebox = {
|
|
enable = true;
|
|
settings = {
|
|
HBOX_OPTIONS_ALLOW_REGISTRATION = "true";
|
|
};
|
|
};
|
|
};
|
|
}
|