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

49 lines
915 B
Nix
Raw Normal View History

2023-07-17 00:17:50 +02:00
{ secret, ... }:
2023-02-13 20:15:10 +01:00
2023-02-12 22:13:30 +01:00
{
services.libreddit = {
enable = true;
address = "127.0.0.1";
port = 8002;
};
2023-02-13 20:15:10 +01:00
2023-03-06 18:23:32 +01:00
services.nginx.virtualHosts."${secret.nginx.hostnames.libreddit}" = {
2023-09-04 12:45:06 +02:00
# listen = [
# {
# addr = "100.64.10.2";
2023-09-04 12:45:06 +02:00
# port = 443;
# ssl = true;
# extraParameters = [
# "fastopen=63"
# "backlog=1023"
# "deferred"
# ];
# }
#
# {
# addr = "[fd7a:115c:a1e0:1010::2]";
2023-09-04 12:45:06 +02:00
# port = 443;
# ssl = true;
# extraParameters = [
# "fastopen=63"
# "backlog=1023"
# ];
# }
# ];
listenAddresses = [ "100.64.10.2" "[fd7a:115c:a1e0:1010::2]" ];
2023-09-04 12:45:06 +02:00
2023-04-03 15:03:52 +02:00
quic = true;
2023-03-06 18:23:32 +01:00
http3 = true;
2023-03-06 10:21:34 +01:00
onlySSL = true;
2023-03-06 18:23:32 +01:00
useACMEHost = "daniel.sx";
2023-02-13 20:15:10 +01:00
2023-03-06 18:23:32 +01:00
locations."/" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:8002";
2023-02-13 20:15:10 +01:00
};
};
2023-02-12 22:13:30 +01:00
}