14 lines
275 B
Nix
14 lines
275 B
Nix
{ config, ... }:
|
|
let
|
|
cfg = config.const.host.nginx;
|
|
in
|
|
{
|
|
"paper.${cfg.domain}" = {
|
|
inherit (cfg) sslCertificate sslCertificateKey extraConfig;
|
|
locations."/" = {
|
|
proxyPass = "http://[::1]:28981$request_uri";
|
|
extraConfig = cfg.allowLocal;
|
|
};
|
|
};
|
|
}
|