toString for solr port

This commit is contained in:
niten 2023-10-10 17:59:53 -07:00
parent c5ef9fe497
commit d2c164784f
1 changed files with 6 additions and 3 deletions

View File

@ -237,8 +237,9 @@ in {
path = with pkgs; [ curl ]; path = with pkgs; [ curl ];
serviceConfig = { serviceConfig = {
DynamicUser = true; DynamicUser = true;
ExecStart = ExecStart = "curl http://${cfg.solr.host}:${
"curl http://${cfg.solr.host}:${cfg.solr.port}/solr/dovecot/update?${params}"; toString cfg.solr.port
}/solr/dovecot/update?${params}";
PrivateDevices = true; PrivateDevices = true;
PrivateTmp = true; PrivateTmp = true;
PrivateMounts = true; PrivateMounts = true;
@ -389,7 +390,9 @@ in {
plugin { plugin {
fts = solr fts = solr
fts_solr = url=http://${cfg.solr.host}:${cfg.solr.port}/solr/dovecot fts_solr = url=http://${cfg.solr.host}:${
toString cfg.solr.port
}/solr/dovecot
} }
mail_access_groups = ${cfg.mail-group} mail_access_groups = ${cfg.mail-group}