2024-11-20 05:46:39 +01:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
services.nginx.virtualHosts."gameserver.grzb.de" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
listen = [
|
2024-11-20 05:46:39 +01:00
|
|
|
{
|
|
|
|
addr = "localhost";
|
|
|
|
port = 1234;
|
|
|
|
} # workaround for enableACME check
|
2024-11-20 05:46:39 +01:00
|
|
|
{
|
|
|
|
addr = "localhost";
|
|
|
|
port = 8443;
|
|
|
|
ssl = true;
|
|
|
|
proxyProtocol = true;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
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;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|