feat(tyr): setup local ssl certs finally.
This commit is contained in:
parent
d5ec26a17a
commit
082c6a7e3a
7 changed files with 110 additions and 9 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue