increase snowflake capacity, add tor subdomain
All checks were successful
/ deploy (push) Successful in 31s
All checks were successful
/ deploy (push) Successful in 31s
This commit is contained in:
parent
25e91078bb
commit
03464d2756
3 changed files with 14 additions and 2 deletions
|
|
@ -1,7 +1,10 @@
|
||||||
{config, ...}: let
|
{config, ...}: let
|
||||||
customDomain = config.customOps.domain.fqdn;
|
customDomain = config.customOps.domain.fqdn;
|
||||||
in {
|
in {
|
||||||
imports = [./captiveportal.nix];
|
imports = [
|
||||||
|
./captiveportal.nix
|
||||||
|
./tor-snowflake.nix
|
||||||
|
];
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [80 443];
|
networking.firewall.allowedTCPPorts = [80 443];
|
||||||
|
|
||||||
|
|
|
||||||
9
config/http/tor-snowflake.nix
Normal file
9
config/http/tor-snowflake.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{config, ...}: let
|
||||||
|
torDomain = "tor.${config.customOps.domain.fqdn}";
|
||||||
|
in {
|
||||||
|
services.nginx.virtualHosts.${torDomain} = {
|
||||||
|
root = "/var/www/${torDomain}";
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -64,7 +64,7 @@ in {
|
||||||
|
|
||||||
services.snowflake-proxy = {
|
services.snowflake-proxy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
capacity = 10;
|
capacity = 20;
|
||||||
extraFlags = ["-metrics"];
|
extraFlags = ["-metrics"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue