forked from pub-solar/infra
feat: libreddit
This commit is contained in:
parent
ef56e0f206
commit
b867dd8578
27
hosts/nachtigall/apps/libreddit.nix
Normal file
27
hosts/nachtigall/apps/libreddit.nix
Normal 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";
|
||||
};
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue