fix: clarify that advanced_config requires Caddy JSON, not Caddyfile syntax

This commit is contained in:
GitHub Actions
2026-03-21 02:12:24 +00:00
parent e4f2606ea2
commit 22769977e3
2 changed files with 15 additions and 3 deletions

View File

@@ -1388,11 +1388,23 @@ export default function ProxyHostForm({ host, onSubmit, onCancel }: ProxyHostFor
id="advanced-config"
value={formData.advanced_config}
onChange={e => setFormData(prev => ({ ...prev, advanced_config: e.target.value }))}
placeholder="Additional Caddy directives..."
placeholder='{"handler": "headers", "request": {"set": {"X-Custom": ["value"]}}}'
rows={4}
className="w-full bg-gray-900 border border-gray-700 rounded-lg px-4 py-2 text-white font-mono text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"
/>
</div>
<p className="mt-1.5 text-xs text-gray-500">
Accepts{' '}
<a
href="https://caddyserver.com/docs/json/"
target="_blank"
rel="noopener noreferrer"
className="text-blue-400 hover:underline"
>
Caddy JSON
</a>
{' '}format only not Caddyfile syntax.
</p>
</div>
{/* Enabled Toggle */}