feat(fi33.buzz): host personal website
This commit is contained in:
parent
ebf47820a0
commit
5a6da0744b
2 changed files with 20 additions and 0 deletions
|
|
@ -10,6 +10,7 @@
|
||||||
"copyparty"
|
"copyparty"
|
||||||
"couchdb"
|
"couchdb"
|
||||||
"cryptpad"
|
"cryptpad"
|
||||||
|
"fi33.buzz"
|
||||||
"gatus"
|
"gatus"
|
||||||
"homepage-dashboard"
|
"homepage-dashboard"
|
||||||
"immich"
|
"immich"
|
||||||
|
|
|
||||||
19
modules/nixos/features/fi33.buzz.nix
Normal file
19
modules/nixos/features/fi33.buzz.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
let
|
||||||
|
certloc = "/var/lib/acme/fi33.buzz";
|
||||||
|
hostname = "www.fi33.buzz";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# TODO why can't I serve content on fi33.buzz? dns propagation issue?
|
||||||
|
services.caddy.virtualHosts = {
|
||||||
|
"fi33.buzz".extraConfig = ''
|
||||||
|
redir https://www.fi33.buzz{uri} permanent
|
||||||
|
'';
|
||||||
|
${hostname}.extraConfig = ''
|
||||||
|
root * /srv/fi33.buzz/public
|
||||||
|
file_server
|
||||||
|
tls ${certloc}/cert.pem ${certloc}/key.pem {
|
||||||
|
protocols tls1.3
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue