nixos/hosts/architect/libreddit.nix

20 lines
303 B
Nix
Raw Normal View History

2023-11-16 16:42:55 +00:00
{ config, ... }:
let
domain = "reddit.giugl.io";
in
{
2023-06-05 03:54:30 +01:00
services.libreddit = {
enable = true;
port = 9090;
};
2023-10-21 14:00:58 +01:00
2023-06-05 03:54:30 +01:00
architect.vhost.${domain} = {
2023-10-21 14:00:58 +01:00
dnsInterfaces = [ "lan" "tailscale" ];
2023-11-16 16:42:55 +00:00
locations."/" = {
port = config.services.libreddit.port;
allowWAN = true;
};
};
}