elnudrop: define enableSSL special argument
This commit is contained in:
parent
86e8c8c9ec
commit
6176753e71
4 changed files with 27 additions and 22 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue