feat(tyr): setup local ssl certs finally.

This commit is contained in:
CronyAkatsuki 2025-10-11 19:06:20 +02:00
parent d5ec26a17a
commit 082c6a7e3a
7 changed files with 110 additions and 9 deletions

View file

@ -1,7 +1,7 @@
{config, ...}: {
services.glance = {
enable = true;
openFirewall = true;
openFirewall = false;
settings = {
server = {
host = "0.0.0.0";
@ -594,4 +594,21 @@
systemd.services.glance.serviceConfig = {
EnvironmentFile = ["${config.age.secrets.glance.path}"];
};
services.traefik.dynamicConfigOptions.http = {
services.glance.loadBalancer.servers = [
{
url = "http://localhost:8080";
}
];
routers.glance = {
rule = "Host(`glance.home.cronyakatsuki.xyz`)";
tls = {
certResolver = "porkbun";
};
service = "glance";
entrypoints = "websecure";
};
};
}