diff options
| author | Joe Mou <dev@mou.fo> | 2024-12-23 13:43:53 -0800 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-08-11 07:17:05 -0400 |
| commit | 09df3242263d0188116d59043d40e6b6e8d09edf (patch) | |
| tree | a4b5893b511d9666d61201524d3e9a5a649576e8 /hostnix | |
| parent | 1373c71a4abb5935f758bf54c89d69f762c96a17 (diff) | |
Remove redlib and nitter for public instances
Diffstat (limited to 'hostnix')
| -rw-r--r-- | hostnix/elmo/configuration.nix | 1 | ||||
| -rw-r--r-- | hostnix/elmo/privacy-frontends.nix | 58 |
2 files changed, 0 insertions, 59 deletions
diff --git a/hostnix/elmo/configuration.nix b/hostnix/elmo/configuration.nix index 5431e30..dc1eb21 100644 --- a/hostnix/elmo/configuration.nix +++ b/hostnix/elmo/configuration.nix @@ -16,7 +16,6 @@ ./home-assistant.nix ./media.nix ./oidc.nix - ./privacy-frontends.nix ./rss.nix ./syncthing.nix ./system.nix diff --git a/hostnix/elmo/privacy-frontends.nix b/hostnix/elmo/privacy-frontends.nix deleted file mode 100644 index 5441aca..0000000 --- a/hostnix/elmo/privacy-frontends.nix +++ /dev/null @@ -1,58 +0,0 @@ -{ pkgs, ... }: - -{ - services.redlib = { - enable = true; - address = "[::1]"; - port = 7682; - }; - - systemd.services.redlib = { - environment = { - REDLIB_DEFAULT_SHOW_NSFW = "on"; - REDLIB_DEFAULT_USE_HLS = "on"; - REDLIB_DEFAULT_WIDE = "on"; - REDLIB_ROBOTS_DISABLE_INDEXING = "on"; - }; - }; - - services.nginx.virtualHosts."lr.mou.fo" = { - enableACME = true; - forceSSL = true; - locations."/".proxyPass = "http://[::1]:7682"; - }; - - systemd.tmpfiles.rules = [ - "d /var/secrets/nitter 0750 root wheel" - ]; - - services.nitter = { - enable = true; - # This must be populated manually as per - # https://github.com/zedeus/nitter/wiki/Guest-Account-Branch-Deployment - # Alternatively it can use logged in account tokens with - # https://github.com/PrivacyDevel/nitter/blob/master/twitter_oauth.sh - sessionsFile = "/var/secrets/nitter/guest-accounts.jsonl"; - server = { - port = 7873; - https = true; - hostname = "ni.mou.fo"; - address = "127.0.0.1"; - }; - preferences = { - hlsPlayback = true; - }; - }; - - systemd.services.nitter = { - unitConfig = { - AssertPathExists = "/var/secrets/nitter/guest-accounts.jsonl"; - }; - }; - - services.nginx.virtualHosts."ni.mou.fo" = { - enableACME = true; - forceSSL = true; - locations."/".proxyPass = "http://127.0.0.1:7873"; - }; -} |
