Darius is part of MDPAD project.
A simple server to hold markdown documents for your small company or personal use.
- Download binary or
go get github.com/Patrolavia/darius
. - Create config.json.
darius config.json
API specification see API.md.
- SiteRoot: Site root url with tailing slash. eg:
http://example.com:12345/my/pad/
. - FrontEnd: Local path you put frontend files. eg:
../frontend
or/srv/mdpad/frontend/build
- Listen: Parameter pass to http.ListenAndServe. The address and port to bind.
- DBType: Database driver, can be
sqlite3
ormysql
. - DBConStr: DB connection string, varies according to
DBType
. - RedisAddr: Redis server connection string.
- SessSecret: SALT for session, type some random string here.
- SessName: Session name prefix.
- GoogleKeyFile: Where to find your google OAuth credential. This file must be in json format, which can be downloaded from Google Developer Console.
- ValidEditor: Emails of valid pad creators, comma-separated. eg:
[email protected],[email protected]
. Leave blank if everyone can create pad.
Darius is a blue whale. He is 17 years old, lives in Antarctic Ocean and travels to Southern Atlantic Ocean every winter.