# Keep Private Application Configuration Outside Public Asset Storage

https://ferkesh.net/zh/knowledgebase/article/private-app-config-separate-public-assets

A deployment can update public assets and private runtime configuration together. Give each a deliberate storage location and access policy.

![Workflow. Record the public root. Locate private settings. Verify staging separation. Document recovery.](https://ferkesh.net/kb-media/ferkesh-guide-diagrams-batch-16c.svg#private-app-config-separate-public-assets)

## 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](https://ferkesh.net/knowledgebase/article/plesk-check-document-root)
- [Check Whether nginx or Apache Serves a Plesk Static Asset](https://ferkesh.net/knowledgebase/article/plesk-nginx-apache-static-asset-path)

## Official references

- [OWASP secrets lifecycle and storage guidance](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html)

Ferkesh Hosting. Last reviewed November 27, 2026.
