Compare commits

...

1 commit

Author SHA1 Message Date
Benjamin Bädorf b867dd8578
feat: libreddit 2023-11-15 13:31:05 +01:00
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"