Add subdirectory routing mode for public domain deployments
Apps can now be served at domain.com/appname/ instead of requiring subdomain DNS records (appname.domain.com). Supports three subpath modes per template: native (URL base env var), strip (handle_path), and none (incompatible warning). Tested on Linux with deploy/removal lifecycle verified. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -451,13 +451,39 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="form-label-accent">
|
||||
🔀 App Routing Mode
|
||||
</label>
|
||||
<div style="display: grid; gap: 10px; margin-top: 8px;">
|
||||
<label style="display: flex; align-items: start; gap: 10px; padding: 12px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; cursor: pointer;">
|
||||
<input type="radio" name="routing-mode" value="subdirectory" checked style="margin-top: 3px;" />
|
||||
<div>
|
||||
<strong>Subdirectory</strong> <span style="color: var(--muted);">(example.com/app)</span>
|
||||
<div style="font-size: 0.8rem; color: var(--muted); margin-top: 2px;">
|
||||
Only needs a single DNS record. Recommended for most setups.
|
||||
</div>
|
||||
</div>
|
||||
</label>
|
||||
<label style="display: flex; align-items: start; gap: 10px; padding: 12px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; cursor: pointer;">
|
||||
<input type="radio" name="routing-mode" value="subdomain" style="margin-top: 3px;" />
|
||||
<div>
|
||||
<strong>Subdomain</strong> <span style="color: var(--muted);">(app.example.com)</span>
|
||||
<div style="font-size: 0.8rem; color: var(--muted); margin-top: 2px;">
|
||||
Requires wildcard DNS (*.example.com) or per-app DNS records
|
||||
</div>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="padding: 16px; background: color-mix(in srgb, var(--accent) 5%, transparent); border-radius: 8px; border: 1px solid var(--accent);">
|
||||
<h4 class="heading-accent-md">⚠️ Requirements:</h4>
|
||||
<ul style="margin: 0; padding-left: 20px; font-size: 0.9rem; line-height: 1.6;">
|
||||
<li>Port 80 and 443 must be open to the internet</li>
|
||||
<li>Domain DNS must point to this server's public IP</li>
|
||||
<li>Server must be reachable from the internet</li>
|
||||
<li>You'll need to configure DNS manually for each subdomain</li>
|
||||
<li id="dns-requirement-note">Only one DNS record needed (for the main domain)</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user