Compare commits

...

2 commits

Author SHA1 Message Date
Fabian Montero dd6a8f9e1c
vps: add calibre 2025-01-23 09:54:43 -06:00
Fabian Montero 05d397f53e
vps: add shiori 2025-01-23 08:16:51 -06:00
3 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{
lib,
pkgs,
...
}:
with lib; {
services = {
nginx = {
virtualHosts."calibre.posixlycorrect.com" = {
enableACME = true;
forceSSL = true;
extraConfig = ''
proxy_headers_hash_max_size 512;
proxy_headers_hash_bucket_size 128;
'';
locations."/" = {
proxyPass = "http://[::1]:8083";
};
};
};
calibre-web = {
enable = true;
openFirewall = true;
options = {
enableBookUploading = true;
calibreLibrary = "/var/lib/calibre-web/calibre_library";
};
};
};
}

View file

@ -15,5 +15,7 @@ with lib; {
./paperless.nix
./trilium.nix
./syncthing.nix
./shiori.nix
./calibre-web.nix
];
}

View file

@ -0,0 +1,29 @@
{
lib,
pkgs,
...
}:
with lib; {
services = {
nginx = {
virtualHosts."bookmarks.posixlycorrect.com" = {
enableACME = true;
forceSSL = true;
extraConfig = ''
proxy_headers_hash_max_size 512;
proxy_headers_hash_bucket_size 128;
'';
locations."/" = {
proxyPass = "http://127.0.0.1:8089";
};
};
};
shiori = {
enable = true;
address = "127.0.0.1";
port = 8089;
environmentFile = "/var/trust/shiori/env";
};
};
}