27 lines
485 B
Nix
27 lines
485 B
Nix
{ ... }:
|
|
{
|
|
services.nginx.virtualHosts."social.nekover.se" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
listen = [
|
|
{
|
|
addr = "0.0.0.0";
|
|
port = 80;
|
|
}
|
|
{
|
|
addr = "localhost";
|
|
port = 8443;
|
|
ssl = true;
|
|
proxyProtocol = true;
|
|
}
|
|
];
|
|
locations."/" = {
|
|
proxyPass = "http://mastodon.vs.grzb.de:80";
|
|
proxyWebsockets = true;
|
|
};
|
|
extraConfig = ''
|
|
client_max_body_size 80m;
|
|
'';
|
|
};
|
|
}
|