Make static-page test use something else than localhost
This commit is contained in:
parent
ed29aa354a
commit
dfc4ef90c4
2 changed files with 13 additions and 10 deletions
|
@ -10,14 +10,14 @@
|
|||
inherit (lib) mkForce genAttrs const;
|
||||
in
|
||||
{
|
||||
# Setup simple localhost page with an example.com redirect
|
||||
# Setup simple docs.example.com page with an example.com redirect
|
||||
qois.static-page = {
|
||||
enable = true;
|
||||
pages."localhost".domainAliases = [ "example.com" ];
|
||||
pages."docs.example.com".domainAliases = [ "example.com" ];
|
||||
};
|
||||
|
||||
# Disable TLS services
|
||||
services.nginx.virtualHosts = genAttrs [ "localhost" "example.com" ] (const {
|
||||
services.nginx.virtualHosts = genAttrs [ "docs.example.com" "example.com" ] (const {
|
||||
forceSSL = mkForce false;
|
||||
enableACME = mkForce false;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue