diff options
Diffstat (limited to 'krebs/2configs/mastodon-proxy.nix')
-rw-r--r-- | krebs/2configs/mastodon-proxy.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/krebs/2configs/mastodon-proxy.nix b/krebs/2configs/mastodon-proxy.nix new file mode 100644 index 00000000..b579a503 --- /dev/null +++ b/krebs/2configs/mastodon-proxy.nix @@ -0,0 +1,17 @@ +{ config, lib, pkgs, ... }: +{ + services.nginx = { + enable = true; + virtualHosts."social.krebsco.de" = { + forceSSL = true; + enableACME = true; + acmeFallbackHost = "hotdog.r"; + locations."/" = { + # TODO use this in 22.11 + recommendedProxySettings = true; + proxyPass = "https://hotdog.r"; + proxyWebsockets = true; + }; + }; + }; +} |