renge/hedgedoc: Migrate to 22.11 options

This commit is contained in:
Simon Bruder 2022-12-10 15:15:58 +01:00
parent aa7cf807f2
commit 81b3d4590a
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -16,7 +16,7 @@ in
services.hedgedoc = { services.hedgedoc = {
enable = true; enable = true;
configuration = { settings = {
host = "127.0.0.1"; host = "127.0.0.1";
port = 3001; port = 3001;
db = { db = {
@ -50,13 +50,13 @@ in
}; };
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"d ${cfg.configuration.uploadsPath} 0700 hedgedoc hedgedoc - -" "d ${cfg.settings.uploadsPath} 0700 hedgedoc hedgedoc - -"
]; ];
services.nginx.virtualHosts."pad.sbruder.de" = { services.nginx.virtualHosts."pad.sbruder.de" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/".proxyPass = "http://${cfg.configuration.host}:${toString cfg.configuration.port}"; locations."/".proxyPass = "http://${cfg.settings.host}:${toString cfg.settings.port}";
}; };
} }