renge/hedgedoc: Migrate to 22.11 options
This commit is contained in:
parent
aa7cf807f2
commit
81b3d4590a
|
@ -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}";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue