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;
|
||||
};
|
||||
nixosModule = { config, ... }: let
|
||||
altfqdn = "fluorite.${config.networking.hostName}.lava.moe";
|
||||
hostfqdn = "${config.networking.hostName}.lava.moe";
|
||||
altfqdn = "fluorite.${hostfqdn}";
|
||||
# TODO: HACK
|
||||
listenAddr = if (config.networking.hostName == "alyssum")
|
||||
then [ "100.67.2.1" ]
|
||||
|
|
@ -48,8 +49,9 @@
|
|||
listenAddresses = listenAddr;
|
||||
};
|
||||
|
||||
security.acme.certs.${hostfqdn} = { extraDomainNames = [ "*.${hostfqdn}" ]; };
|
||||
services.nginx.virtualHosts."${altfqdn}" = {
|
||||
useACMEHost = "lava.moe";
|
||||
useACMEHost = hostfqdn;
|
||||
forceSSL = true;
|
||||
locations."/".proxyPass = "http://[${client}]:5030";
|
||||
listenAddresses = listenAddr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue