30 lines
547 B
Nix
30 lines
547 B
Nix
{
|
|
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";
|
|
};
|
|
};
|
|
}
|