22 lines
719 B
Nix
22 lines
719 B
Nix
{ lib, config, pkgs, proxyReverse, ... }: {
|
|
disabledModules = [ "services/web-apps/shiori.nix" ];
|
|
imports = [ ../../pkgs/shiori/shiori-service.nix ];
|
|
options.my.servers.shiori.enable = lib.mkEnableOption "enable";
|
|
config = lib.mkIf config.my.servers.shiori.enable {
|
|
services = {
|
|
shiori = {
|
|
enable = true;
|
|
port = 4368;
|
|
package = pkgs.callPackage ../../pkgs/shiori/shiori.nix { };
|
|
httpSecretKey = "password";
|
|
databaseUrl = "postgres:///shiori?host=${config.my.postgresSocket}";
|
|
};
|
|
nginx = {
|
|
enable = true;
|
|
virtualHosts."bookmarks.${config.my.domain}" =
|
|
proxyReverse config.services.shiori.port // { };
|
|
};
|
|
};
|
|
};
|
|
}
|