Allowed hosts config#4471
Conversation
Allow developers to specify custom hostnames in their local application_settings.yml without adding them to version control. This enables per-developer server configuration while keeping the codebase clean. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Use Settings.get_config_hash to access custom configuration values since the Settings module doesn't dynamically create methods for arbitrary keys. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Allow the Settings module to accept allowed_hosts configuration without throwing a validation error. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
The allowed_hosts configuration needs to run after Settings.load_from_settings_file so the settings are available. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
This would actually allow to apply on ANY environment, not just Not sure what the interaction of this and production deployments would be, looks that |
I only tested this under |
Note to selfLooks production env does not include the required middleware for above problem to occur: |
Support
allowed_hostswhen running viadocker compose, to avoid this error on development servers:Related PR — Documentation update: SpeciesFileGroup/taxonworks_doc#108