add preview of techblog

This commit is contained in:
Ingolf Wagner 2021-08-29 09:17:34 +02:00
parent e89d41e066
commit f9e576ee0f
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -192,6 +192,37 @@ in {
} // error.locations;
};
"preview.tech.ingolf-wagner.de" = {
listen = [
{
addr = "0.0.0.0";
port = 4443;
ssl = true;
}
{
addr = "0.0.0.0";
port = 80;
ssl = false;
}
];
forceSSL = true;
enableACME = true;
extraConfig = error.extraConfig;
locations = {
"/" = {
basicAuth.moderator = "IwantitIwantitIwantit";
root = "/srv/www/tech_preview";
extraConfig = ''
if (-d $request_filename) {
rewrite [^/]$ $scheme://$http_host$request_uri/ permanent;
}
'';
};
} // error.locations;
};
"terranix.org" = {
listen = [
{