nixos/odoo: disable the database manager by default (#485310)

This commit is contained in:
Maciej Krüger
2026-01-30 19:55:28 +00:00
committed by GitHub
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -103,6 +103,9 @@ in
services.odoo.settings.options = {
data_dir = "/var/lib/private/odoo/data";
proxy_mode = cfg.domain != null;
# Disable the database manager by default
# https://www.odoo.com/documentation/master/administration/on_premise/deploy.html#database-manager-security
list_db = lib.mkDefault false;
}
// (lib.optionalAttrs (cfg.addons != [ ]) {
addons_path = lib.concatMapStringsSep "," lib.escapeShellArg cfg.addons;
+1
View File
@@ -29,5 +29,6 @@
server.wait_for_unit("odoo.service")
server.wait_until_succeeds("curl -s http://localhost:8069/web/database/selector | grep '<title>Odoo</title>'")
server.succeed("curl -s http://localhost/web/database/selector | grep '<title>Odoo</title>'")
server.succeed("curl http://localhost/web/database/manager | grep 'database manager has been disabled'")
'';
}