feat: libreddit

This commit is contained in:
Benjamin Bädorf 2023-11-15 13:31:05 +01:00
parent ef56e0f206
commit b867dd8578
No known key found for this signature in database
GPG key ID: 1B7BF5B77A521346
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"