What problem will this feature address?
When adding a custom domain to a Dokploy application, the generated Traefik configuration does not support storing and persisting per-domain advanced router configurations.
Currently:
Use Case
Users with advanced Traefik needs want to:
- Configure TLS passthrough per domain
- Add custom authentication rules to specific routes
- Set custom TLS options (e.g., mutual TLS, pinned certificates)
- Persist these settings through domain updates without manual re-configuration
Current Limitations
- Domain schema stores only middleware names, not full router configuration
manageDomain() function always regenerates full config with no merge capability
- Advanced router properties (TLS, authentication) have no storage mechanism
- Updates to domain settings trigger full config regeneration, losing custom settings
Related Issues
Describe the solution you'd like
Proposed Solution
- Add storage for custom router config per domain
- Add UI for advanced Traefik configuration (textarea/YAML editor in domain settings)
- Implement merge logic to combine auto-generated config with user-provided custom config
- Preserve custom config during domain updates
Benefits
- Advanced Traefik users gain full flexibility
- Custom configurations persist through domain updates
- Backward compatible with existing domains
- Aligns with existing middleware customization feature
Impact
- Users can configure TLS passthrough, authentication, and other router-level properties per domain
- No loss of configuration on domain updates
- Enable more complex Traefik routing scenarios without manual file editing
Describe alternatives you've considered
Additional context
No response
Will you send a PR to implement it?
Maybe, need help
What problem will this feature address?
When adding a custom domain to a Dokploy application, the generated Traefik configuration does not support storing and persisting per-domain advanced router configurations.
Currently:
middlewares: text[])Use Case
Users with advanced Traefik needs want to:
Current Limitations
manageDomain()function always regenerates full config with no merge capabilityRelated Issues
Describe the solution you'd like
Proposed Solution
Benefits
Impact
Describe alternatives you've considered
Additional context
No response
Will you send a PR to implement it?
Maybe, need help