490350c7f9
Until I figure out how to get authentication working.
31 lines
621 B
Nix
31 lines
621 B
Nix
{ ... }:
|
|
{
|
|
services = {
|
|
calibre-server = {
|
|
enable = false;
|
|
user = "payas";
|
|
libraries = [ "/home/payas/org/books/calibre/" ];
|
|
};
|
|
|
|
nginx.virtualHosts = {
|
|
"books.bhankas.org" = {
|
|
addSSL = true;
|
|
enableACME = true;
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:8080";
|
|
proxyWebsockets = false;
|
|
extraConfig =
|
|
"proxy_set_header Host $host;"
|
|
;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
security.acme.certs = {
|
|
"books.bhankas.org" = {
|
|
email = "admin@bhankas.org";
|
|
dnsResolver = "1.1.1.1:53";
|
|
};
|
|
};
|
|
}
|