Skip to content

start.sh --hosted rewrites the Caddyfile and drops operator-added site blocks on upgrade #4149

Closed

Description

@vybe

Problem

On a hosted-layout install, start.sh --hosted now rewrites /etc/caddy/Caddyfile on every start (the change that added the proxy re-render). An operator who added a site block by hand for their own hostname loses it on the next upgrade: the hostname stops answering until the block is restored from a backup. Seen on an upgrade from v1.0.0 to dev at c6107a9 on 2026-11-01: about seven minutes of downtime on the instance's public hostname, fixed by restoring the previous Caddyfile.

Done when

  • start.sh --hosted preserves operator-added site blocks (or a documented include file) when it re-renders the Caddyfile, or refuses to overwrite a Caddyfile it did not write without a flag, and says so.
  • The upgrade docs for hosted installs say what the script rewrites and where an operator's own blocks must live.
  • A test or a dry-run mode shows the rendered file before it is written.

Context

Hosted mode and the Caddy re-render: trinity#3439 (trusted proxies, start.sh --hosted re-renders Caddy). Public-network plain HTTP: trinity#3821.

Activity

  1. added
    priority-p2
    type-bug
    theme-reliability
    complexity-low
    status-ready
    on Nov 1, 2026
  2. added
    status-in-progress
    and removed
    status-ready
    on Nov 2, 2026
  3. self-assigned this
    on Nov 2, 2026
  4. dolho commented on Nov 2, 2026

    @dolho
    Contributor

    /claim — working on this.

  5. github-actions commented on Nov 2, 2026

    @github-actions

    @dolho This issue is already assigned to dolho. Use /unclaim first if you want to take over.

  6. dolho commented on Nov 2, 2026

    @dolho
    Contributor

    PR: #4176

  7. added
    status-in-dev
    and removed
    status-in-progress
    on Nov 4, 2026
  8. removed
    status-in-dev
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

complexity-lowpriority-p2theme-reliabilitytype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions