add preview of techblog
This commit is contained in:
parent
e89d41e066
commit
f9e576ee0f
1 changed files with 31 additions and 0 deletions
|
@ -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 = [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue