Keep comments off Forgejo value lines in .env.example #48
Loading…
Reference in a new issue
No description provided.
Delete branch "env-example-inline-comments"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The Forgejo variable block in
.env.examplecarried inline comments after each value (FORGEJO_DB_PASSWORD=changeme # openssl rand -hex 32). Copying that block into a host.envmade docker compose resolve the values as empty rather than their literal placeholder, so a recreatedforgejocontainer came up with blank secrets and no working configuration. This bit during today's recovery on phd-tower.Annotations move to comment lines above the values, with an added note that regenerating the secrets mid-life is a rotation — safe only while the forge holds no data.
Verification
docker compose configcarries every secret at the right length).