Great you found the solution to your issue Gunnar.
One main problem is: if your settings are set at web level (in Lucee web administrator) and your web apps “web-inf” folder is/or gets deleted for whatever reason, your admin settings are also wiped. One option would be to export these settings with CommandBox tool “cfconfig” for backup (so you can reimport them to any other web context), or to use the Application.cfc like @cfmitrah posted.
By setting these configuration within your Application.cfc you’ll have a better portability between local and production, because settings will override the admin settings no matter where you are. Plus: By taking that path you’ll have them automatically in your web applications backups.
If you want to export these settings to your Application.cfc, use the Export tool in the Lucee Administrator(web or server), you can export all the settings from within your admin by navigating to
lucee admin => Settings => Export and copy and paste it to your Application.cfc.