2021-08-08 22:09:37 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
2021-10-28 19:02:38 +00:00
|
|
|
domains = [ "www.infra4future.de" "hacc.earth" "www.hacc.earth" "muc.hacc.earth" "help.studentsforfuture.info" ];
|
2021-08-08 22:09:37 +00:00
|
|
|
in {
|
|
|
|
|
|
|
|
services.nginx.virtualHosts =
|
|
|
|
listToAttrs (map (host: nameValuePair host {
|
|
|
|
useACMEHost = "infra4future.de";
|
|
|
|
forceSSL = true;
|
|
|
|
locations."/".proxyPass = "http://${config.containers.gitlab.localAddress}:8090";
|
|
|
|
}) domains) // {
|
|
|
|
"infra4future.de" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
locations."/".proxyPass = "http://${config.containers.gitlab.localAddress}:8090";
|
|
|
|
};
|
2021-08-18 18:56:05 +00:00
|
|
|
"muc.hacc.earth" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
locations."/".extraConfig = ''
|
|
|
|
proxy_pass "http://${config.containers.gitlab.localAddress}:8090/infra4future/muc.hacc.earth/";
|
|
|
|
proxy_set_header Host 'hacc.4future.dev';
|
|
|
|
'';
|
|
|
|
};
|
2021-09-14 20:17:37 +00:00
|
|
|
"help.studentsforfuture.info" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
locations."/".extraConfig = ''
|
|
|
|
proxy_pass "http://${config.containers.gitlab.localAddress}:8090/pcs-docs/";
|
|
|
|
proxy_set_header Host 'studentsforfuture.4future.dev';
|
|
|
|
'';
|
|
|
|
};
|
2021-08-08 22:09:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
security.acme.certs."infra4future.de" = {
|
|
|
|
extraDomainNames = domains;
|
|
|
|
};
|
|
|
|
}
|