2023-12-20 19:53:09 +01:00
|
|
|
{
|
|
|
|
services.nginx.virtualHosts = {
|
|
|
|
|
|
|
|
"www.hackens.org" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
extraConfig = ''
|
|
|
|
return 301 $scheme://hackens.org$request_uri;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
"new.hackens.org" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
extraConfig = ''
|
|
|
|
return 301 $scheme://hackens.org$request_uri;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
"pass.new.hackens.org" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
extraConfig = ''
|
|
|
|
return 301 $scheme://pass.hackens.org$request_uri;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
"known.hackens.org" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
extraConfig = ''
|
|
|
|
return 301 $scheme://hackens.org/known$request_uri;
|
2024-09-24 12:33:51 +02:00
|
|
|
'';
|
2023-12-20 19:53:09 +01:00
|
|
|
};
|
|
|
|
"prez.hackens.org" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
extraConfig = ''
|
|
|
|
return 301 $scheme://hackens.org/prez$request_uri;
|
2024-09-24 12:33:51 +02:00
|
|
|
'';
|
2023-12-20 19:53:09 +01:00
|
|
|
};
|
|
|
|
"pub.hackens.org" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
extraConfig = ''
|
|
|
|
return 301 $scheme://hackens.org/pub$request_uri;
|
2024-09-24 12:33:51 +02:00
|
|
|
'';
|
2023-12-20 19:53:09 +01:00
|
|
|
};
|
|
|
|
"2048.hackens.org" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
extraConfig = ''
|
|
|
|
return 301 $scheme://hackens.org/2048$request_uri;
|
2024-09-24 12:33:51 +02:00
|
|
|
'';
|
2023-12-20 19:53:09 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|