2023-11-16 16:42:55 +00:00
|
|
|
{ config, ... }:
|
2021-12-01 14:47:40 +00:00
|
|
|
|
2021-12-08 16:39:00 +00:00
|
|
|
let
|
|
|
|
domain = "reddit.giugl.io";
|
2022-11-10 23:33:06 +00:00
|
|
|
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;
|
|
|
|
};
|
2021-12-01 14:47:40 +00:00
|
|
|
};
|
|
|
|
}
|