mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 12:32:32 +00:00
Nix testvm: enable ssl with test signed keys
This commit is contained in:
1 parent
4e09e48958
commit
f9d725a389
1 file changed
+14
@@ -1,6 +1,20 @@
|
||||
{ pkgs, lib, ... }:
|
||||
let
|
||||
nginxTestSigning = {
|
||||
addSSL = true;
|
||||
enableACME = false;
|
||||
|
||||
# We don't care about certificates around here...
|
||||
sslCertificate = "${pkgs.path}/nixos/tests/common/acme/server/acme.test.cert.pem";
|
||||
sslCertificateKey = "${pkgs.path}/nixos/tests/common/acme/server/acme.test.key.pem";
|
||||
};
|
||||
in
|
||||
{
|
||||
networking.hostName = "sbtest";
|
||||
services.nginx.virtualHosts."sb.localhost" = nginxTestSigning;
|
||||
services.nginx.virtualHosts."api.sb.localhost" = nginxTestSigning;
|
||||
services.nginx.virtualHosts."gw.sb.localhost" = nginxTestSigning;
|
||||
services.nginx.virtualHosts."cdn.sb.localhost" = nginxTestSigning;
|
||||
|
||||
services.spacebarchat-server =
|
||||
let
|
||||
|
||||
Reference in new issue
Block a user