improve hedhedoc
This commit is contained in:
parent
0b041cc949
commit
7cbd49fe42
5 changed files with 88 additions and 90 deletions
24
hosts/md/hedgedoc.nix
Normal file
24
hosts/md/hedgedoc.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
db = {
|
||||
host = "sql.berlin.ccc.de";
|
||||
port = 5432;
|
||||
username = "hedgedoc";
|
||||
database = "hedgedoc";
|
||||
};
|
||||
in
|
||||
{
|
||||
services.hedgedoc = {
|
||||
enable = true;
|
||||
settings = {
|
||||
domain = "${config.networking.hostName}.${config.networking.domain}";
|
||||
dbURL = "postgres://${db.username}:\${DB_PASSWORD}@${db.host}:${toString db.port}/${db.name}";
|
||||
# sync with config.age.secrets.postgres-hedgedoc.path
|
||||
environmentFile = config.age.secrets.hedgedoc-env.path;
|
||||
protocolUseSSL = true;
|
||||
enableStatsApi = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue