containers/fluorite: configure ssl cert correctly
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run
This commit is contained in:
parent
042a04cbfc
commit
f1defd435a
1 changed files with 4 additions and 2 deletions
|
|
@ -28,7 +28,8 @@
|
||||||
inherit modules;
|
inherit modules;
|
||||||
};
|
};
|
||||||
nixosModule = { config, ... }: let
|
nixosModule = { config, ... }: let
|
||||||
altfqdn = "fluorite.${config.networking.hostName}.lava.moe";
|
hostfqdn = "${config.networking.hostName}.lava.moe";
|
||||||
|
altfqdn = "fluorite.${hostfqdn}";
|
||||||
# TODO: HACK
|
# TODO: HACK
|
||||||
listenAddr = if (config.networking.hostName == "alyssum")
|
listenAddr = if (config.networking.hostName == "alyssum")
|
||||||
then [ "100.67.2.1" ]
|
then [ "100.67.2.1" ]
|
||||||
|
|
@ -48,8 +49,9 @@
|
||||||
listenAddresses = listenAddr;
|
listenAddresses = listenAddr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
security.acme.certs.${hostfqdn} = { extraDomainNames = [ "*.${hostfqdn}" ]; };
|
||||||
services.nginx.virtualHosts."${altfqdn}" = {
|
services.nginx.virtualHosts."${altfqdn}" = {
|
||||||
useACMEHost = "lava.moe";
|
useACMEHost = hostfqdn;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/".proxyPass = "http://[${client}]:5030";
|
locations."/".proxyPass = "http://[${client}]:5030";
|
||||||
listenAddresses = listenAddr;
|
listenAddresses = listenAddr;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue