2024-01-15 14:15:15 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
baseDomain = "peninsula.industries";
|
|
|
|
domain = "https://notes.${baseDomain}";
|
|
|
|
sandboxDomain = "https://notes-sandbox.${baseDomain}";
|
|
|
|
in {
|
|
|
|
imports = [../nginx.nix];
|
|
|
|
services.cryptpad = {
|
|
|
|
enable = true;
|
|
|
|
configureNginx = true;
|
|
|
|
settings = {
|
2024-07-26 09:39:56 +01:00
|
|
|
verbose = true;
|
2024-01-15 14:15:15 +00:00
|
|
|
httpUnsafeOrigin = domain;
|
|
|
|
httpSafeOrigin = sandboxDomain;
|
|
|
|
adminKeys = ["[cyplo@notes.peninsula.industries/I6JogBXmOeSxP0QSMltqs24QR4qgnpo70eRbDDLAFwA=]"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|