fix(deertopia): Persist SSL certs
This commit is contained in:
@@ -132,18 +132,21 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
sydnix.deertopia.nginx.vhosts."auth".vhost = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
extraConfig = ''
|
||||
set $upstream http://127.0.0.1:${builtins.toString cfg.httpPort};
|
||||
'';
|
||||
locations."/".extraConfig = ''
|
||||
include ${./authelia/proxy.conf};
|
||||
proxy_pass $upstream;
|
||||
'';
|
||||
locations."/api/verify".proxyPass = "$upstream";
|
||||
locations."/api/authz".proxyPass = "$upstream";
|
||||
sydnix.deertopia.nginx.vhosts."auth" = {
|
||||
directory = null;
|
||||
vhost = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
extraConfig = ''
|
||||
set $upstream http://127.0.0.1:${builtins.toString cfg.httpPort};
|
||||
'';
|
||||
locations."/".extraConfig = ''
|
||||
include ${./authelia/proxy.conf};
|
||||
proxy_pass $upstream;
|
||||
'';
|
||||
locations."/api/verify".proxyPass = "$upstream";
|
||||
locations."/api/authz".proxyPass = "$upstream";
|
||||
};
|
||||
};
|
||||
|
||||
# TODO: Remove this. It's only used for a quick demo for myself. The
|
||||
|
||||
Reference in New Issue
Block a user