the nixos way (should work)

This commit is contained in:
jacekpoz 2023-07-14 23:01:53 +02:00
parent bb6645574b
commit c2482d1d1f
3 changed files with 12 additions and 1 deletions

View file

@ -52,7 +52,7 @@
services.caddy = {
enable = true;
virtualHosts."trollface.pl".extraConfig = ''
root * /var/www/trollface.pl
root * ${./trollface.pl}
file_server
'';
};

View file

@ -0,0 +1,11 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta property="og:image" content="/trollface.png">
<title>trolled !!!</title>
</head>
<body>
<img src="/trollface.png">
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB