AFFiNE/.docker/dev
..
certs
nginx
templates
.env.example
.gitignore
compose.yml.example
README.md

Dev containers

Develop with domain

MacOs only, OrbStack only

1. Generate and install Root CA

# the root ca file will be located at `./.docker/dev/certs/ca`
yarn affine cert --install

2. Generate domain certs

# certificates will be located at `./.docker/dev/certs/${domain}`
yarn affine cert --domain affine.localhost

3. Enable nginx service in compose.yml