x-zenith.configs so users can edit it in Zenith. When they apply a change, Zenith saves the file and restarts the app.
Create the file in your app
Your app must create its starting configuration when the file is missing. Store it in a volume so it survives restarts. For example, your app could read its settings from/config/app.yml. On first launch, create that file with your default settings. On later launches, use the existing file so you keep the user’s changes.
Add the file to zenith-compose.yml
Add the following fields to your existing file. Replace app with your service name and use the folder and filename your app reads. Keep your existing image, catalogue, endpoint, and other settings.
zenith-compose.yml
settings:/configputs the volume at/configinside your app.storage: settingschooses that volume through itsx-zenith.storageentry.path: /app.ymlpoints to/config/app.ymlinside your app. The path starts at the volume’s root, so leave out/config.
public: true.
Set type to your file format, such as yaml, json, ini, or toml, for syntax highlighting. You can also leave it out and let Zenith use the filename extension.
Check that changes work
Open your deployment’s Configuration section. Select the file, change a setting, and choose Apply & restart. Check that your app uses the new setting after restarting. Restart it again and check that the change is still there. If the app fails to start, correct the saved settings and retry the restart. Zenith saves text files without validating the app’s configuration format. For all fields and file restrictions, see theconfigs reference.