set primary domain

This commit is contained in:
AJ ONeal 2017-07-31 17:04:57 -06:00
parent 0dd3d6fe7b
commit e78276267e
1 changed files with 6 additions and 4 deletions

View File

@ -70,15 +70,17 @@ bash /srv/walnut/core/install-helper.sh
Initial Configuration
-------------
Once installed and started you can visit <https://localhost.daplie.me:3000>.
Once installed and started you can visit <https://localhost.daplie.me:3000> to configure the primary domain.
You could also do this manually via curl:
```bash
PRIMARY_DOMAIN="example.com"
curl -X POST http://api.localhost.daplie.me:3000/api/walnut@daplie.com/init \
-H 'X-Forwarded-Proto: https' \
-H 'Content-Type: application/json' \
-d '{
"domain": "example.com"
}'
-d '{ "domain": "'$PRIMARY_DOMAIN'" }'
```
API