From 2063ea347954833ccfc55dcf2cf2a5e3178cee68 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Sun, 1 Oct 2023 16:11:10 -0400 Subject: Add libreddit service --- hostnix/weebnix/configuration.nix | 1 + hostnix/weebnix/privacy-frontends.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 hostnix/weebnix/privacy-frontends.nix (limited to 'hostnix/weebnix') 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"; + }; +} -- cgit v1.3.1