2024-01-31 13:11:29 +00:00
|
|
|
{ system, ... }:
|
|
|
|
let
|
|
|
|
notebook = builtins.getFlake
|
2024-04-28 13:37:28 +00:00
|
|
|
"github:jrpotter/notebook/9ee37c8b7d21a48cf63cf5648b2eff222b55155f";
|
2024-01-31 13:11:29 +00:00
|
|
|
in
|
|
|
|
{
|
2024-04-12 20:10:56 +00:00
|
|
|
services.nginx = {
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
|
|
|
|
virtualHosts."notebook.jrpotter.com" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
locations."/" = {
|
|
|
|
root = "${notebook.packages.${system}.app}/share";
|
|
|
|
tryFiles = "$uri $uri.html $uri/ =404";
|
|
|
|
};
|
2024-01-31 13:11:29 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|