2023-07-24 01:12:36 +02:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
services.nginx.virtualHosts."mewtube.nekover.se" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
2023-10-10 15:21:16 +02:00
|
|
|
listen = [{
|
|
|
|
addr = "localhost";
|
|
|
|
port = 8443;
|
|
|
|
ssl = true;
|
|
|
|
extraParameters = ["proxy_protocol"];
|
|
|
|
}];
|
2023-07-24 01:12:36 +02:00
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://cloudtube.vs.grzb.de:10412";
|
|
|
|
};
|
2023-09-28 04:57:17 +02:00
|
|
|
extraConfig = ''
|
|
|
|
set_real_ip_from 127.0.0.1;
|
|
|
|
real_ip_header proxy_protocol;
|
|
|
|
'';
|
2023-07-24 01:12:36 +02:00
|
|
|
};
|
|
|
|
}
|