chore(sterni/machines): move http services from edwin to ingeborg
* Make sterni.lv declarative * Disable gopher server * Disable likely-music.sterni.lv for now * Don't give systemd too much leeway with scheduling git syncs Change-Id: Ie8507d96f2df76ad8e393b2181ed7378c37829d0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10480 Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
This commit is contained in:
parent
12f9b95a2c
commit
06db871bd7
10 changed files with 46 additions and 22 deletions
34
users/sterni/machines/ingeborg/http/sterni.lv.nix
Normal file
34
users/sterni/machines/ingeborg/http/sterni.lv.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ pkgs, depot, ... }:
|
||||
|
||||
let
|
||||
inherit (depot.users.sterni.nix.html)
|
||||
__findFile
|
||||
withDoctype
|
||||
;
|
||||
in
|
||||
|
||||
{
|
||||
imports = [
|
||||
./nginx.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
services.nginx.virtualHosts."sterni.lv" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = pkgs.writeTextFile {
|
||||
name = "sterni.lv-http-root";
|
||||
destination = "/index.html";
|
||||
text = withDoctype (<html> { } [
|
||||
(<head> { } [
|
||||
(<meta> { charset = "utf-8"; } null)
|
||||
(<title> { } "no thoughts")
|
||||
])
|
||||
(<body> { } "🦩")
|
||||
]);
|
||||
};
|
||||
# TODO(sterni): tmp.sterni.lv
|
||||
locations."/tmp/".root = toString /srv/http;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue