WIP: feat: libreddit #58

Draft
b12f wants to merge 1 commit from feat/libreddit into main
3 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{
config,
lib,
pkgs,
self,
...
}: {
services.nginx.virtualHosts."libreddit.pub.solar" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyWebsockets = true;
extraConfig = ''
proxy_pass http://127.0.0.1:8082;
proxy_set_header Host $host;
'';
};
};
services.libreddit = {
enable = true;
openFirewall = false;
address = "127.0.0.1";
port = "8082";
};
}

View file

@ -13,6 +13,7 @@
./apps/collabora.nix
./apps/forgejo.nix
./apps/keycloak.nix
./apps/libreddit.nix
./apps/mailman.nix
./apps/mastodon.nix
./apps/nextcloud.nix

View file

@ -66,6 +66,12 @@ resource "namecheap_domain_records" "pub-solar" {
address = "nachtigall.pub.solar."
ttl = 60
}
record {
hostname = "libreddit"
type = "CNAME"
address = "nachtigall.pub.solar."
ttl = 60
}
record {
hostname = "@"
type = "ALIAS"