|
|
|
|
|
|
|
|
The PrivMX Team Server configuration file is located at `/etc/privmx-team-server/config.json`. We describe the most important settings here.
|
|
|
|
|
|
## Domain & port (REQUIRED)
|
|
|
You should set a domain and port:
|
|
|
```
|
|
|
{
|
|
|
"domain": "example.com",
|
|
|
"server": {
|
|
|
"port": 80
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## Enabling SSL
|
|
|
```
|
|
|
{
|
|
|
"server": {
|
|
|
"ssl": {
|
|
|
"enabled": true,
|
|
|
"privKeyPath": "/etc/privmx-team-server/cert/server.key",
|
|
|
"certificatePath": "/etc/privmx-team-server/cert/server.crt"
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## Let's Encrypt webroot plugin
|
|
|
You can enable support for the webroot plugin by adding:
|
|
|
```
|
|
|
{
|
|
|
"server": {
|
|
|
"staticDirs": [
|
|
|
{
|
|
|
"url": "/.well-known/acme-challenge",
|
|
|
"path": "/var/www/{your-domain}/.well-known/acme-challenge"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## External mongodb
|
|
|
You can use an existing mongodb installation for your PrivMX Team Server:
|
|
|
```
|
|
|
{
|
|
|
"db": {
|
|
|
"mongo": {
|
|
|
"url": "mongodb://my-external-host.com:27017",
|
|
|
"dbName": "my_db_name"
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
|