Skip to content

config-builder.ts hardcodes /var/lib/shipyard/sites instead of using SITES_DIR env #55

Description

@Alimedhat000

Summary

packages/worker/src/infrastructure/caddy/config-builder.ts:7 hardcodes const SITES_ROOT = "/var/lib/shipyard/sites" while the rest of the worker reads SITES_DIR from env (default /var/lib/shipyard/sites). Any install that overrides SITES_DIR gets Caddy routes pointing at a nonexistent root.

Fix

Read the root from getEnv().SITES_DIR like the storage code does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageMaintainer needs to evaluate the issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions