stockholm/krebs/2configs/mastodon-proxy.nix

18 lines
389 B
Nix
Raw Normal View History

2022-12-02 08:05:42 +00:00
{ config, lib, pkgs, ... }:
{
services.nginx = {
enable = true;
virtualHosts."social.krebsco.de" = {
forceSSL = true;
enableACME = true;
2023-12-12 13:13:22 +00:00
acmeFallbackHost = "hotdog.r";
2022-12-02 08:05:42 +00:00
locations."/" = {
# TODO use this in 22.11
2023-12-12 18:12:20 +00:00
recommendedProxySettings = true;
proxyPass = "https://hotdog.r";
2022-12-02 08:05:42 +00:00
proxyWebsockets = true;
};
};
};
}