removed home.ingolf-wagner.de

This commit is contained in:
Ingolf Wagner 2021-03-29 21:18:08 +02:00
parent df61e3166e
commit 11aa803200
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -285,44 +285,44 @@ in {
};
"home.ingolf-wagner.de" = {
listen = [
{
addr = "0.0.0.0";
port = 4443;
ssl = true;
}
{
addr = "0.0.0.0";
port = 80;
ssl = false;
}
];
extraConfig = ''
proxy_buffering off;
# client certificate
ssl_client_certificate ${<secrets/client-cert/ca.crt>};
# make verification optional, so we can display a 403 message to those
# who fail authentication
ssl_verify_client optional;
'';
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://pepe.private:8123";
proxyWebsockets = true;
extraConfig = ''
# if the client-side certificate failed to authenticate, show a 403
# message to the client
if ($ssl_client_verify != SUCCESS) {
return 403;
}
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
'';
};
};
#"home.ingolf-wagner.de" = {
# listen = [
# {
# addr = "0.0.0.0";
# port = 4443;
# ssl = true;
# }
# {
# addr = "0.0.0.0";
# port = 80;
# ssl = false;
# }
# ];
# extraConfig = ''
# proxy_buffering off;
# # client certificate
# ssl_client_certificate ${<secrets/client-cert/ca.crt>};
# # make verification optional, so we can display a 403 message to those
# # who fail authentication
# ssl_verify_client optional;
# '';
# forceSSL = true;
# enableACME = true;
# locations."/" = {
# proxyPass = "http://pepe.private:8123";
# proxyWebsockets = true;
# extraConfig = ''
# # if the client-side certificate failed to authenticate, show a 403
# # message to the client
# if ($ssl_client_verify != SUCCESS) {
# return 403;
# }
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection $connection_upgrade;
# '';
# };
#};
};