gerd.fricloud-website: added fricloud.dk website, to get certificate
... as well as having a website at some point
This commit is contained in:
parent
8169ee57b0
commit
303b66493b
2 changed files with 28 additions and 0 deletions
|
@ -12,6 +12,7 @@ in {
|
||||||
|
|
||||||
./gerd/services/lldap.nix
|
./gerd/services/lldap.nix
|
||||||
# ./gerd/services/authelia.nix
|
# ./gerd/services/authelia.nix
|
||||||
|
./gerd/services/fricloud-website.nix
|
||||||
./gerd/services/forgejo.nix
|
./gerd/services/forgejo.nix
|
||||||
./gerd/services/teeworlds.nix
|
./gerd/services/teeworlds.nix
|
||||||
./gerd/services/murmur.nix
|
./gerd/services/murmur.nix
|
||||||
|
|
27
machines/gerd/services/fricloud-website.nix
Normal file
27
machines/gerd/services/fricloud-website.nix
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.nginx.virtualHosts."fricloud.dk" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
root = pkgs.writeTextDir "index.html" ''
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Fricloud.dk</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<marquee
|
||||||
|
direction="down"
|
||||||
|
behavior="alternate">
|
||||||
|
<marquee behavior="alternate">Under Construction</marquee>
|
||||||
|
</marquee>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
# setup group for fricloud.dk cert + add nginx to group.
|
||||||
|
# group `fricloud-domain` is used for users that need access to the domain certificate, e.g. murmur
|
||||||
|
security.acme.certs."fricloud.dk".group = config.users.groups.fricloud-domain.name;
|
||||||
|
users.groups.fricloud-domain.members = [ config.users.users.nginx.name ];
|
||||||
|
}
|
Loading…
Reference in a new issue