Keep Private Application Configuration Outside Public Asset Storage
A deployment can update public assets and private runtime configuration together. Give each a deliberate storage location and access policy.
Identify the paths the web server exposes
Write down the public document root and any asset mappings. Review the build manifest and hosting configuration together. A workspace path can be private on one server and inside the public web root after a migration.
Identify how the runtime loads configuration
Use the application's supported secret store or an access-restricted location outside the public tree. Document which service identity needs access and how values are injected at runtime. Use synthetic settings for staging checks. Avoid placing keys in generated client-side bundles.
Test the separation on staging
Verify that the runtime starts and reads a harmless configuration value in the intended private context. Compare the actual staged public directory against the asset manifest. Check a normal public asset request for its expected response without requesting or publishing real configuration values.
Confirm ownership and recovery
Document how the private values are restored and how the public artifacts are rolled back. Keep the configuration's value material out of public archives and diagnostics.
Related guides
- How to Check an Add-On Domain’s Document Root in Plesk
- Check Whether nginx or Apache Serves a Plesk Static Asset
Official references
Ferkesh Hosting. Last reviewed .
Thanks for your feedback!