nix-infra/config/hosts/web-public-2/virtualHosts/gameserver.grzb.de.nix

29 lines
639 B
Nix
Raw Permalink Normal View History

{ ... }:
{
services.nginx.virtualHosts."gameserver.grzb.de" = {
forceSSL = true;
enableACME = true;
listen = [{
addr = "localhost";
port = 8443;
ssl = true;
extraParameters = ["proxy_protocol"];
}];
locations."/" = {
proxyPass = "http://pterodactyl.vs.grzb.de";
extraConfig = ''
proxy_redirect off;
proxy_buffering off;
proxy_request_buffering off;
'';
};
extraConfig = ''
client_max_body_size 1024m;
add_header X-Content-Type-Options nosniff;
2023-09-28 04:57:17 +02:00
set_real_ip_from 127.0.0.1;
real_ip_header proxy_protocol;
'';
};
}