2023-07-16 22:17:50 +00:00
|
|
|
{ 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}" = {
|
2023-09-04 10:45:06 +00:00
|
|
|
# listen = [
|
|
|
|
# {
|
|
|
|
# addr = "100.108.165.26";
|
|
|
|
# port = 443;
|
|
|
|
# ssl = true;
|
|
|
|
# extraParameters = [
|
|
|
|
# "fastopen=63"
|
|
|
|
# "backlog=1023"
|
|
|
|
# "deferred"
|
|
|
|
# ];
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
# {
|
|
|
|
# addr = "[fd7a:115c:a1e0:ab12:4843:cd96:626c:a51a]";
|
|
|
|
# port = 443;
|
|
|
|
# ssl = true;
|
|
|
|
# extraParameters = [
|
|
|
|
# "fastopen=63"
|
|
|
|
# "backlog=1023"
|
|
|
|
# ];
|
|
|
|
# }
|
|
|
|
# ];
|
|
|
|
|
2023-06-21 12:21:40 +00:00
|
|
|
listenAddresses = [ "100.108.165.26" "[fd7a:115c:a1e0:ab12:4843:cd96:626c:a51a]" ];
|
2023-09-04 10:45:06 +00:00
|
|
|
|
2023-04-03 13:03:52 +00:00
|
|
|
quic = true;
|
2023-03-06 17:23:32 +00:00
|
|
|
http3 = true;
|
2023-03-06 09:21:34 +00:00
|
|
|
|
2023-03-12 20:03:36 +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
|
|
|
}
|