Homelab updates
- Change domain to opdavies.uk as this works with HTTPS/SSL. - Switch Nginx to Caddy.
This commit is contained in:
parent
f43069adac
commit
07fde36fb0
17 changed files with 98 additions and 64 deletions
|
@ -6,8 +6,20 @@ with lib;
|
|||
options.features.homelab.paperless.enable = mkEnableOption "Enable paperless";
|
||||
|
||||
config = mkIf config.features.homelab.paperless.enable {
|
||||
services.paperless = {
|
||||
enable = true;
|
||||
services = {
|
||||
paperless = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
PAPERLESS_URL = "https://paperless.opdavies.uk";
|
||||
};
|
||||
};
|
||||
|
||||
caddy.virtualHosts."paperless.opdavies.uk" = {
|
||||
useACMEHost = "opdavies.uk";
|
||||
|
||||
extraConfig = "reverse_proxy localhost:28981";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue