mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
test: setting up opencloud and microvms
This commit is contained in:
parent
f45ce82e0a
commit
97aebfbb59
1 changed files with 4 additions and 10 deletions
|
|
@ -14,28 +14,22 @@ in
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"${opencloud.domains.url0}" = {
|
"${opencloud.domains.url0}" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
reverse_proxy ${eris.ip.address0}:${builtins.toString service.ports.port1} {
|
reverse_proxy ${eris.ip.address0}:${builtins.toString service.ports.port0}
|
||||||
transport http {
|
tls ${opencloud.ssl.cert} ${opencloud.ssl.key}
|
||||||
tls
|
|
||||||
tls_insecure_skip_verify
|
|
||||||
}
|
|
||||||
}
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
security.acme.certs."${opencloudHost}" = {
|
security.acme.certs."${opencloudHost}" = {
|
||||||
dnsProvider = dns;
|
dnsProvider = dns;
|
||||||
environmentFile = config.sops.secrets.${dnsPath}.path;
|
environmentFile = config.sops.secrets.${dnsPath}.path;
|
||||||
group = "caddy";
|
group = "caddy";
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
firewall = {
|
firewall = {
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
service.ports.port0
|
service.ports.port0 # 80
|
||||||
service.ports.port1
|
service.ports.port1 # 443
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue