summaryrefslogtreecommitdiff
path: root/hostnix
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2023-10-01 16:11:10 -0400
committerJoe Mou <dev@mou.fo>2023-10-01 16:12:56 -0400
commit2063ea347954833ccfc55dcf2cf2a5e3178cee68 (patch)
tree20fa7255a371069360bf5e7141295cd4005cb3d7 /hostnix
parentdb364a0c013f876dc0d4a2d8bf2cfccb7ce3affc (diff)
Add libreddit service
Diffstat (limited to 'hostnix')
-rw-r--r--hostnix/weebnix/configuration.nix1
-rw-r--r--hostnix/weebnix/privacy-frontends.nix15
2 files changed, 16 insertions, 0 deletions
diff --git a/hostnix/weebnix/configuration.nix b/hostnix/weebnix/configuration.nix
index a879185..a1c1420 100644
--- a/hostnix/weebnix/configuration.nix
+++ b/hostnix/weebnix/configuration.nix
@@ -6,6 +6,7 @@
./hardware-configuration.nix
./home-assistant.nix
./oidc.nix
+ ./privacy-frontends.nix
./syncthing.nix
./system.nix
];
diff --git a/hostnix/weebnix/privacy-frontends.nix b/hostnix/weebnix/privacy-frontends.nix
new file mode 100644
index 0000000..b312155
--- /dev/null
+++ b/hostnix/weebnix/privacy-frontends.nix
@@ -0,0 +1,15 @@
+{ ... }:
+
+{
+ services.libreddit = {
+ enable = true;
+ address = "[::1]";
+ port = 7682;
+ };
+
+ services.nginx.virtualHosts."lr.weebnix.mou.fo" = {
+ enableACME = true;
+ forceSSL = true;
+ locations."/".proxyPass = "http://[::1]:7682";
+ };
+}