This commit is contained in:
DuN0z 2025-10-09 17:46:15 +02:00
parent fd5f22ae65
commit 845c3373ba
9 changed files with 65 additions and 55 deletions

View file

@ -1,26 +1,29 @@
{ config, pkgs, lib, ... }: {
{ config, pkgs, lib, ... }:
let
import ../../config/globals.nix ;
in {
services = {
outline = {
enable = true;
port = 3002 ;
publicUrl = "http://notes.porzh.me";
port = globals.services.outline.port ;
publicUrl = "http://${globals.services.outline.url}";
forceHttps = true;
smtp = {
host = "smtp.protonmail.ch";
username = "contact@porzh.me";
host = globals.smtp.host ;
username = globals.smtp.user ;
passwordFile = "/run/secrets/proton_pass";
fromEmail = "contact@porzh.me";
replyEmail = "contact@porzh.me";
port = 587 ;
fromEmail = globals.smtp.user;
replyEmail = globals.smtp.user;
port = globals.smtp.port;
secure = false;
};
storage.storageType = "local";
};
caddy = {
enable = true;
virtualHosts."notes.porzh.me" = {
virtualHosts.${globals.services.outline.url} = {
extraConfig = ''
reverse_proxy localhost:3002
reverse_proxy localhost:${globals.services.outline.port}
'';
};
};