REFACTOR: Add config vars file
This commit is contained in:
parent
2f0b5cf661
commit
330958fba4
10 changed files with 66 additions and 56 deletions
|
|
@ -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}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue