mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
refactor(access): switch to ssl options
This commit is contained in:
parent
3a8eeda006
commit
5aac27ca51
3 changed files with 46 additions and 72 deletions
|
|
@ -53,14 +53,15 @@ in {
|
|||
};
|
||||
|
||||
services.cloudflared = let
|
||||
inherit (nginx) virtualHosts;
|
||||
tunnelId = "964121e3-b3a9-4cc1-8480-954c4728b604";
|
||||
in {
|
||||
tunnels.${tunnelId} = {
|
||||
default = "http_status:404";
|
||||
credentialsFile = config.sops.secrets.cloudflared-tunnel-hakurei.path;
|
||||
ingress = {
|
||||
"prox.${config.networking.domain}".service = "http://localhost";
|
||||
${config.networking.domain}.service = "http://localhost";
|
||||
${virtualHosts.prox.serverName}.service = "http://localhost";
|
||||
${virtualHosts.gensokyoZone.serverName}.service = "http://localhost";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -144,13 +145,13 @@ in {
|
|||
])
|
||||
];
|
||||
};
|
||||
${access.proxmox.domain} = {
|
||||
prox = {
|
||||
inherit (nginx) group;
|
||||
domain = virtualHosts.prox.serverName;
|
||||
extraDomainNames = mkMerge [
|
||||
[access.proxmox.localDomain]
|
||||
(mkIf config.services.tailscale.enable [
|
||||
access.proxmox.tailDomain
|
||||
])
|
||||
virtualHosts.prox.serverAliases
|
||||
virtualHosts.prox'local.allServerNames
|
||||
(mkIf virtualHosts.prox'tail.enable virtualHosts.prox'tail.allServerNames)
|
||||
];
|
||||
};
|
||||
plex = {
|
||||
|
|
@ -243,8 +244,9 @@ in {
|
|||
${access.freepbx.domain} = {
|
||||
local.enable = true;
|
||||
};
|
||||
${access.proxmox.domain} = {
|
||||
useACMEHost = access.proxmox.domain;
|
||||
prox = {
|
||||
proxied.enable = "cloudflared";
|
||||
ssl.cert.enable = true;
|
||||
};
|
||||
plex.ssl.cert.enable = true;
|
||||
kitchencam.ssl.cert.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue