got (www.)?simply-wise.fr

This commit is contained in:
catvayor 2024-08-21 19:50:37 +02:00
parent 918172f777
commit 9936e252d8
Signed by: lbailly
GPG key ID: CE3E645251AC63F3
3 changed files with 68 additions and 1 deletions

View file

@ -37,7 +37,10 @@
"orchid.katvayor.net" = { "orchid.katvayor.net" = {
ssh = 22042; ssh = 22042;
ip = "192.168.122.6"; ip = "192.168.122.6";
aliases = [ ]; aliases = [
"simply-wise.fr"
"www.simply-wise.fr"
];
}; };
}; };
}; };

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="color-scheme" content="light dark">
<title>503 Service Unavailable</title>
</head>
<body align="center">
<div role="main" align="center">
<h1>503 Service Unavailable</h1>
<img src="https://http.cat/503.jpg"/>
<hr />
</div>
<div role="contentinfo" align="center">
Ce site est en cours de construction, repassez plus tard, merci.
<br/>
<small>Crédit à <a href="https://http.cat">http.cat</a> pour l'image.</small>
<br/>
<small>Error in kat-orchid.</small>
</div>
</body>
</html>

View file

@ -81,6 +81,10 @@
security.acme = { security.acme = {
acceptTerms = true; acceptTerms = true;
defaults.email = "root@katvayor.net"; defaults.email = "root@katvayor.net";
certs."orchid.katvayor.net".extraDomainNames = [
"simply-wise.fr"
"www.simply-wise.fr"
];
}; };
services.nginx = { services.nginx = {
enable = true; enable = true;
@ -92,6 +96,21 @@
alias = "/srv/orchid/"; 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 = { services.wordpress = {
@ -102,6 +121,29 @@
device = "/srv/orchid"; device = "/srv/orchid";
options = [ "bind" ]; 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 = { users.users.orchid = {
isNormalUser = true; isNormalUser = true;