Oliver Davies
07fde36fb0
- Change domain to opdavies.uk as this works with HTTPS/SSL. - Switch Nginx to Caddy.
26 lines
508 B
Nix
26 lines
508 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
options.features.homelab.paperless.enable = mkEnableOption "Enable paperless";
|
|
|
|
config = mkIf config.features.homelab.paperless.enable {
|
|
services = {
|
|
paperless = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
PAPERLESS_URL = "https://paperless.opdavies.uk";
|
|
};
|
|
};
|
|
|
|
caddy.virtualHosts."paperless.opdavies.uk" = {
|
|
useACMEHost = "opdavies.uk";
|
|
|
|
extraConfig = "reverse_proxy localhost:28981";
|
|
};
|
|
};
|
|
};
|
|
}
|