2019-07-12 23:20:55 +02:00
|
|
|
---
|
|
|
|
|
layout: default
|
|
|
|
|
title: Settings
|
|
|
|
|
permalink: /settings
|
|
|
|
|
nav_order: 3
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# Settings
|
2019-07-24 11:49:02 +02:00
|
|
|
Main `gancio` configuration is done with a configuration file.
|
|
|
|
|
This shoud be a `.json` or a `.js` file and could be specified using the `--config` flag.
|
|
|
|
|
|
|
|
|
|
- <small>eg. `gancio start --config ./config.json'</small>
|
|
|
|
|
- <small>eg. `pm2 start gancio start -- --config ~/config.json'</small>
|
|
|
|
|
|
|
|
|
|
Default configuration
|
2019-07-12 23:20:55 +02:00
|
|
|
{: .no_toc }
|
|
|
|
|
|
|
|
|
|
1. TOC
|
|
|
|
|
{:toc}
|
|
|
|
|
|
2019-07-24 11:49:02 +02:00
|
|
|
|
|
|
|
|
#### Title
|
|
|
|
|
####
|
|
|
|
|
|
|
|
|
|
|
2019-07-12 23:20:55 +02:00
|
|
|
## Default settings
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"title": "Gancio",
|
|
|
|
|
"description": "A shared agenda for local communities",
|
|
|
|
|
"baseurl": "http://localhost:13120",
|
|
|
|
|
"server": {
|
|
|
|
|
"host": "0.0.0.0",
|
|
|
|
|
"port": 13120
|
|
|
|
|
},
|
|
|
|
|
"db": {
|
|
|
|
|
"dialect": "sqlite",
|
|
|
|
|
"storage": "/tmp/db.sqlite"
|
|
|
|
|
},
|
|
|
|
|
"upload_path": "./",
|
2019-07-24 11:49:02 +02:00
|
|
|
"favicon": "../dist/favicon.ico",
|
2019-07-12 23:20:55 +02:00
|
|
|
"smtp": {
|
|
|
|
|
"auth": {
|
|
|
|
|
"user": "",
|
|
|
|
|
"pass": ""
|
|
|
|
|
},
|
|
|
|
|
"secure": true,
|
|
|
|
|
"host": ""
|
|
|
|
|
},
|
|
|
|
|
"admin": {
|
|
|
|
|
"email": "",
|
|
|
|
|
"password": ""
|
|
|
|
|
},
|
|
|
|
|
"secret": "notsosecret"
|
|
|
|
|
}
|
|
|
|
|
```
|