1
0
Fork 0
dotfiles/system/nixos/libreddit.nix

24 lines
428 B
Nix
Raw Normal View History

2023-03-05 22:51:30 +00:00
{ config, secret, ... }:
2023-02-13 19:15:10 +00:00
2023-02-12 21:13:30 +00:00
{
services.libreddit = {
enable = true;
address = "127.0.0.1";
port = 8002;
};
2023-02-13 19:15:10 +00:00
2023-03-06 17:23:32 +00:00
services.nginx.virtualHosts."${secret.nginx.hostnames.libreddit}" = {
listenAddresses = [ "100.113.242.85" ];
2023-03-06 17:23:32 +00:00
http3 = true;
2023-03-06 09:21:34 +00:00
onlySSL = true;
2023-03-06 17:23:32 +00:00
useACMEHost = "daniel.sx";
2023-02-13 19:15:10 +00:00
2023-03-06 17:23:32 +00:00
locations."/" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:8002";
2023-02-13 19:15:10 +00:00
};
};
2023-02-12 21:13:30 +00:00
}