elnudrop: define enableSSL special argument

This commit is contained in:
Elnu 2023-08-11 11:44:06 -07:00
parent 86e8c8c9ec
commit 6176753e71
4 changed files with 27 additions and 22 deletions

View file

@ -1,4 +1,4 @@
{ config, ... }:
{ config, enableSSL, ... }:
let
baseDomain = "elnu.com";
@ -18,8 +18,8 @@ in {
};
environment.systemPackages = [ config.services.headscale.package ];
services.nginx.virtualHosts.${domain} = {
forceSSL = true;
enableACME = true;
forceSSL = enableSSL;
enableACME = enableSSL;
locations."/" = {
proxyPass = "http://localhost:${ toString config.services.headscale.port }";
proxyWebsockets = true;