Compare commits

...

2 commits

2 changed files with 25 additions and 7 deletions

View file

@ -15,7 +15,7 @@
../profiles/ipv6.nix
../profiles/mastodon.nix
../profiles/matrix.nix
../profiles/mcwhirter.io.nix
#../profiles/mcwhirter.io.nix
../profiles/minecraftServer.nix
../profiles/nextcloud.nix
../profiles/nixpkgs-dev.nix
@ -34,10 +34,24 @@
}
];
services.tmate = {
enable = true;
openFirewall = true;
sshHostname = "tmate.mcwhirter.io";
services = {
tmate = {
enable = true;
openFirewall = true;
sshHostname = "tmate.mcwhirter.io";
};
nginx = {
virtualHosts."source.mcwhirter.io" = {
enableACME = true;
forceSSL = true;
globalRedirect = "reciproka.dev"; # Redirect permanently to the host
};
};
};
security.acme = {
acceptTerms = true;
certs = {"source.mcwhirter.io" = {email = "craige@mcwhirter.io";};};
};
system.stateVersion = "19.03"; # The version of NixOS originally installed

View file

@ -78,7 +78,8 @@
forceSSL = true; # Force SSL
};
virtualHosts."owncloud.mcwhirter.io" = {
# Hostname to be redirected
enableACME = true;
forceSSL = true;
globalRedirect = "cloud.mcwhirter.io"; # Redirect permanently to the host
};
};
@ -91,7 +92,10 @@
security.acme = {
acceptTerms = true;
certs = {"cloud.mcwhirter.io" = {email = "craige@mcwhirter.io";};};
certs = {
"cloud.mcwhirter.io" = {email = "craige@mcwhirter.io";};
"owncloud.mcwhirter.io" = {email = "craige@mcwhirter.io";};
};
};
users.groups.keys.members = ["nextcloud"]; # Required due to NixOps issue #1204