Untrack config.yaml, ignore it, and add config.example.yaml

config.yaml is meant to hold real, deployment-specific secrets (bcrypt
password hashes) and the public base_url, so it shouldn't be committed.
Add it to .gitignore, remove it from version control (kept locally on
disk), and check in config.example.yaml as the template to copy from.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-08-18 12:52:05 +02:00
co-authored by Copilot
parent b4644bc590
commit 21bac66b07
3 changed files with 10 additions and 2 deletions
+1
View File
@@ -1 +1,2 @@
data/ data/
config.yaml
+9 -2
View File
@@ -33,7 +33,14 @@ go run ./tools/hashpwd mysecretpassword
# Outputs: $2b$12$... # Outputs: $2b$12$...
``` ```
### 3. Edit `config.yaml` ### 3. Create your `config.yaml`
Copy the example config and edit it — `config.yaml` is git-ignored so your
real credentials/domain never get committed:
```bash
cp config.example.yaml config.yaml
```
Replace the placeholder hashes with your real bcrypt hashes: Replace the placeholder hashes with your real bcrypt hashes:
@@ -205,7 +212,7 @@ caldav-server/
│ ├── store/ # filesystem storage layer │ ├── store/ # filesystem storage layer
│ └── webdav/ # WebDAV file handler │ └── webdav/ # WebDAV file handler
├── tools/hashpwd/ # bcrypt password hasher CLI ├── tools/hashpwd/ # bcrypt password hasher CLI
├── config.yaml # sample configuration ├── config.example.yaml # sample configuration (copy to config.yaml)
├── Dockerfile ├── Dockerfile
├── docker-compose.yaml ├── docker-compose.yaml
└── Makefile └── Makefile
View File