stockholm/krebs/2configs/mastodon-proxy.nix
2023-12-12 19:12:20 +01:00

18 lines
389 B
Nix

{ 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;
};
};
};
}