mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore: nf-fmt-nix
This commit is contained in:
parent
0947ca0532
commit
fef4f25ca4
8 changed files with 123 additions and 104 deletions
|
|
@ -32,7 +32,7 @@ in {
|
|||
};
|
||||
};
|
||||
virtualHosts = let
|
||||
vouchHost = { config, ... }: {
|
||||
vouchHost = {config, ...}: {
|
||||
vouch = {
|
||||
requireAuth = mkDefault false;
|
||||
auth.lua = {
|
||||
|
|
@ -60,7 +60,11 @@ in {
|
|||
};
|
||||
};
|
||||
# TODO: restrict to "/auth/authorize" and "/auth/login_flow" only..?
|
||||
"/auth/" = { virtualHost, config, ... }: {
|
||||
"/auth/" = {
|
||||
virtualHost,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
proxy = {
|
||||
inherit headers;
|
||||
enable = true;
|
||||
|
|
@ -78,13 +82,13 @@ in {
|
|||
};
|
||||
};
|
||||
in {
|
||||
home-assistant = { ... }: {
|
||||
imports = [ vouchHost ];
|
||||
home-assistant = {...}: {
|
||||
imports = [vouchHost];
|
||||
inherit name locations;
|
||||
proxy.upstream = mkDefault upstreamName;
|
||||
};
|
||||
home-assistant'local = { ... }: {
|
||||
imports = [ vouchHost ];
|
||||
home-assistant'local = {...}: {
|
||||
imports = [vouchHost];
|
||||
vouch.enable = mkDefault nginx.virtualHosts.home-assistant.vouch.enable;
|
||||
inherit name listen' locations;
|
||||
ssl.cert = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue