1
Fork 0
satellite/hosts/nixos/lapetus/services/moonythm.nix

27 lines
417 B
Nix
Raw Normal View History

2025-03-03 23:11:41 +01:00
{
inputs,
pkgs,
...
}:
let
dir = inputs.moonythm.packages.${pkgs.system}.moonythm;
in
{
satellite.cloudflared.at."".port = 8080;
services.nginx.virtualHosts."".extraConfig = ''
root ${dir};
error_page 404 /404.html;
proxy_intercept_errors on;
location / {
index index.html;
try_files $uri $uri.html $uri/ =404;
}
location = /404.html {
internal;
}
'';
}