From 306652ff73a3302c398ec6b3284c86a3257785ca Mon Sep 17 00:00:00 2001 From: Amanda Graven Date: Tue, 12 Apr 2022 15:38:07 +0200 Subject: [PATCH] Set up nitter on wind --- config/hosts/wind/services/nginx.nix | 5 +++++ config/hosts/wind/services/nitter.nix | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 config/hosts/wind/services/nitter.nix diff --git a/config/hosts/wind/services/nginx.nix b/config/hosts/wind/services/nginx.nix index e219049..5e0cf2f 100644 --- a/config/hosts/wind/services/nginx.nix +++ b/config/hosts/wind/services/nginx.nix @@ -29,6 +29,11 @@ forceSSL = true; locations."/".proxyPass = "http://unix:/run/gitea/gitea.sock:"; }; + "nitter.graven.dev" = { + useACMEHost = "graven.dev"; + forceSSL = true; + locations."/".proxyPass = "http://localhost:4992" + } "vault.graven.dev" = { forceSSL = true; useACMEHost = "graven.dev"; diff --git a/config/hosts/wind/services/nitter.nix b/config/hosts/wind/services/nitter.nix new file mode 100644 index 0000000..9bc7f40 --- /dev/null +++ b/config/hosts/wind/services/nitter.nix @@ -0,0 +1,11 @@ +{ config, ... }: +{ + services.nitter = { + enable = true; + server = { + port = 4992; + # Only save cookies on HTTPS + https = true; + } + } +}