nix-config/hosts/servers/alexandria/shiori.nix
2023-04-06 09:45:01 -03:00

17 lines
359 B
Nix

{ inputs, config, pkgs, lib, ... }:
{
services = {
shiori = {
enable = true;
port = lib.toInt "${config.ports.shiori}";
};
nginx.virtualHosts."shiori.baduhai.me" = {
useACMEHost = "baduhai.me";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.shiori}";
};
};
}