Fix document

This commit is contained in:
cuigh 2017-11-14 17:30:08 +08:00
parent b6c670593f
commit 10b4779920

View File

@ -41,27 +41,29 @@ Swirl is a web management tool for Docker, focused on swarm cluster.
### With config file ### With config file
All options can be set with `config/app.conf`. All options can be set with `config/app.yml`.
```xml ```yaml
<config> name: swirl
<app> banner: false
<add key="name" value="swirl"/>
</app> web:
<web> address: ':8001'
<add key="address" value=":8001"/> authorize: '?'
<!-- default authorize mode, valid options: *(everyone)/?(login user)/!(authorized explicitly) -->
<add key="authorize_mode" value="?"/> swirl:
</web> db_type: mongo
<swirl> db_address: localhost:27017/swirl
<!-- optional --> # docker_endpoint: tcp://docker-proxy:2375
<add key="docker_endpoint" value="tcp://docker-proxy:2375"/>
<!-- optional, valid options: mongo --> log:
<add key="db_type" value="mongo"/> loggers:
<!-- required, database connection string, must match with db.type option --> - level: info
<add key="db_address" value="localhost:27017/swirl"/> writers: console
</swirl> writers:
</config> - name: console
type: console
layout: '[{L}]{T}: {M}{N}'
``` ```
### With environment variables ### With environment variables