Compare commits
6 commits
bec9e413cb
...
f04ec5fbc6
| Author | SHA1 | Date | |
|---|---|---|---|
| f04ec5fbc6 | |||
| 796213b0ed | |||
| 6094ff7d12 | |||
| 6a172bc574 | |||
| 6bedb95929 | |||
| 12790d5444 |
1 changed files with 2 additions and 4 deletions
|
|
@ -93,7 +93,6 @@
|
|||
|
||||
virtualHosts."${config.services.nginx.domain}" = {
|
||||
useACMEHost = "tlater.net";
|
||||
forceSSL = true;
|
||||
enableHSTS = true;
|
||||
locations."/".return = "200 ok";
|
||||
};
|
||||
|
|
@ -101,8 +100,8 @@
|
|||
};
|
||||
in
|
||||
{
|
||||
hstsIsSet = pkgs.testers.runNixOSTest {
|
||||
name = "hsts-is-set";
|
||||
testNginxSSL = pkgs.testers.runNixOSTest {
|
||||
name = "test-nginx-ssl";
|
||||
|
||||
node.specialArgs = { inherit flake-inputs; };
|
||||
nodes = {
|
||||
|
|
@ -122,7 +121,6 @@
|
|||
testHost.copy_from_vm("/var/lib/acme/tlater.net/", "certs")
|
||||
client.copy_from_host(f"{testHost.out_dir}/certs", "/certs")
|
||||
|
||||
client.succeed("curl --max-time 10 http://testHost")
|
||||
res = client.succeed(" ".join([
|
||||
"curl",
|
||||
"--show-error",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue