update proxy config

This commit is contained in:
2025-10-12 22:24:09 -05:00
parent cae85ef2e6
commit 61e8436dd9
17 changed files with 27 additions and 23 deletions

View File

@@ -79,13 +79,22 @@ in
# open firewall
networking.firewall.allowedTCPPorts = [ cfg.port ];
# add to caddy for reverse proxy
services.caddy.virtualHosts."${cfg.url}" = {
extraConfig = ''
tls ${sec."ssl_blakedheld_crt".path} ${sec."ssl_blakedheld_key".path}
reverse_proxy 127.0.0.1:${toString cfg.port} {
}
'';
};
# add to glance local service
modules.services.glance.links.mediastack = [{
title = service;
url = "https://${cfg.url}";
error-url = "http://${homelab.host_ip}:${toString cfg.port}";
check-url = "http://${homelab.host_ip}:${toString cfg.port}";
icon = "di:${service}"; }];
icon = "di:yac-reader"; }];
# sops.secrets = {
# "${service}_" = {