feat: add temporary homepage

This commit is contained in:
oddlama 2024-04-12 20:28:27 +02:00
parent 36baaef47d
commit c345f4e937
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
7 changed files with 27 additions and 14 deletions

View file

@ -1 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICOdYhY/DnXpizajoeLefH6gsc/RX9x3Y6T3C1a+0sb0
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH64l5nh2ryG+1I2sXvfr7m8kTLP5N3CmnK12MHHKSfr

View file

@ -1,4 +1,8 @@
{config, ...}: {
{
config,
pkgs,
...
}: {
imports = [
../../modules/optional/hardware/hetzner-cloud.nix
@ -16,9 +20,23 @@
users.groups.acme.members = ["nginx"];
wireguard.proxy-sentinel.firewallRuleForAll.allowedTCPPorts = [80 443];
services.nginx.enable = true;
services.nginx.recommendedSetup = true;
services.nginx.virtualHosts.${config.repo.secrets.global.domains.me} = {
forceSSL = true;
useACMEWildcardHost = true;
locations."/".root = pkgs.runCommand "index.html" {} ''
mkdir -p $out
cat > $out/index.html <<EOF
<html>
<body>Not empty soon TM. Until then please go here: <a href="https://github.com/oddlama">oddlama</a></body>
</html>
EOF
'';
};
meta.promtail = {
enable = true;
proxy = "sentinel";