Configure aresix
This commit is contained in:
parent
cb8d24c6ce
commit
4011299399
7 changed files with 289 additions and 2 deletions
26
machines/aresix/modules/reverse-proxy.nix
Normal file
26
machines/aresix/modules/reverse-proxy.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{...}: {
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = "personal+letsencrypt@peprolinbot.com";
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [80 443];
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
virtualHosts = {
|
||||
"ha.campares.duckdns.org" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
extraConfig = ''
|
||||
proxy_buffering off;
|
||||
'';
|
||||
locations."/" = {
|
||||
proxyPass = "http://[::1]:8123";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue