diff --git a/domain-proxies.nix b/domain-proxies.nix
index b49bb28..d4aa516 100644
--- a/domain-proxies.nix
+++ b/domain-proxies.nix
@@ -37,7 +37,10 @@
"orchid.katvayor.net" = {
ssh = 22042;
ip = "192.168.122.6";
- aliases = [ ];
+ aliases = [
+ "simply-wise.fr"
+ "www.simply-wise.fr"
+ ];
};
};
};
diff --git a/machines/kat-orchid/building.html b/machines/kat-orchid/building.html
new file mode 100644
index 0000000..df0d547
--- /dev/null
+++ b/machines/kat-orchid/building.html
@@ -0,0 +1,22 @@
+
+
+
+
+
+ 503 Service Unavailable
+
+
+
+
503 Service Unavailable
+
+
+
+
+ Ce site est en cours de construction, repassez plus tard, merci.
+
+
Crédit à http.cat pour l'image.
+
+
Error in kat-orchid.
+
+
+
diff --git a/machines/kat-orchid/default.nix b/machines/kat-orchid/default.nix
index 8a2b707..6d40a5b 100644
--- a/machines/kat-orchid/default.nix
+++ b/machines/kat-orchid/default.nix
@@ -81,6 +81,10 @@
security.acme = {
acceptTerms = true;
defaults.email = "root@katvayor.net";
+ certs."orchid.katvayor.net".extraDomainNames = [
+ "simply-wise.fr"
+ "www.simply-wise.fr"
+ ];
};
services.nginx = {
enable = true;
@@ -92,6 +96,21 @@
alias = "/srv/orchid/";
};
};
+ "simply-wise.fr" = {
+ useACMEHost = "orchid.katvayor.net";
+ forceSSL = true;
+ serverAliases = [ "www.simply-wise.fr" ];
+ locations."/" = {
+ root = pkgs.runCommand "building" { } ''
+ mkdir -p $out
+ ln -nsf ${./building.html} $out/building.html
+ '';
+ extraConfig = ''
+ internal;
+ error_page 404 =503 /building.html;
+ '';
+ };
+ };
};
};
services.wordpress = {
@@ -102,6 +121,29 @@
device = "/srv/orchid";
options = [ "bind" ];
};
+ systemd = {
+ tmpfiles.settings."10-srv-orchid"."/srv/orchid" = {
+ d = {
+ group = "users";
+ user = "orchid";
+ };
+ Z = {
+ group = "users";
+ user = "orchid";
+ mode = "0755";
+ };
+ };
+ timers.srv-tmpfiles = {
+ wantedBy = [ "timers.target" ];
+ timerConfig.OnCalendar = "*-*-* *:*:07..57/10";
+ };
+ services.srv-tmpfiles = {
+ path = [ pkgs.systemd ];
+ script = ''
+ systemd-tmpfiles --create --prefix=/srv
+ '';
+ };
+ };
users.users.orchid = {
isNormalUser = true;