28 lines
667 B
Nix
28 lines
667 B
Nix
{ config, pkgs, lib, ... }: {
|
|
services = {
|
|
outline = {
|
|
enable = true;
|
|
port = 3002 ;
|
|
publicUrl = "http://notes.porzh.me";
|
|
forceHttps = true;
|
|
smtp = {
|
|
host = "smtp.protonmail.ch";
|
|
username = "contact@porzh.me";
|
|
passwordFile = "/run/secrets/proton_pass";
|
|
fromEmail = "contact@porzh.me";
|
|
replyEmail = "contact@porzh.me";
|
|
port = 587 ;
|
|
secure = false;
|
|
};
|
|
storage.storageType = "local";
|
|
};
|
|
caddy = {
|
|
enable = true;
|
|
virtualHosts."notes.porzh.me" = {
|
|
extraConfig = ''
|
|
reverse_proxy localhost:3002
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|