mirror of
https://github.com/haiwen/seafile-admin-docs.git
synced 2026-01-01 03:02:47 +00:00
Update document for ccnet.conf
This commit is contained in:
parent
3dc2682324
commit
4e6b580132
|
|
@ -4,11 +4,26 @@
|
|||
Ccnet is the internal RPC framework used by Seafile server and also manages the user database. A few useful options are in ccnet.conf.
|
||||
|
||||
!!! note
|
||||
Ccnet component is merged into seaf-server in version 7.1, but the configuration file are still needed
|
||||
ccnet.conf is removed in version 12.0.
|
||||
|
||||
## Options that moved to .env file
|
||||
|
||||
ccnet.conf is removed in version 12.0.
|
||||
|
||||
The following informaiton is read from `.env` file
|
||||
|
||||
```
|
||||
SEAFILE_MYSQL_DB_USER: The database user, the default is seafile
|
||||
SEAFILE_MYSQL_DB_PASSWORD: The database password
|
||||
SEAFILE_MYSQL_DB_HOST: The database host
|
||||
SEAFILE_MYSQL_DB_CCNET_DB_NAME: The database name for ccnet db, the default is ccnet_db
|
||||
```
|
||||
|
||||
|
||||
## Changing MySQL Connection Pool Size
|
||||
|
||||
> In version 12.0, the following information is read from the same option in seafile.conf
|
||||
|
||||
When you configure ccnet to use MySQL, the default connection pool size is 100, which should be enough for most use cases. You can change this value by adding following options to ccnet.conf:
|
||||
|
||||
```
|
||||
|
|
@ -20,6 +35,8 @@ MAX_CONNECTIONS = 200
|
|||
|
||||
## Using Encrypted Connections
|
||||
|
||||
> In version 12.0, the following information is read from the same option in seafile.conf
|
||||
|
||||
Since Seafile 10.0.2, you can enable the encrypted connections to the MySQL server by adding the following configuration options:
|
||||
|
||||
```
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@ conf/.env
|
|||
JWT_PRIVATE_KEY=xxx
|
||||
SEAFILE_SERVER_PROTOCOL=https
|
||||
SEAFILE_SERVER_HOSTNAME=seafile.example.com
|
||||
SEAFILE_MYSQL_DB_CCNET_DB_NAME=ccnet_db
|
||||
```
|
||||
|
||||
Note: JWT_PRIVATE_KEY, A random string with a length of no less than 32 characters, generate example: `pwgen -s 40 1`
|
||||
|
|
|
|||
Loading…
Reference in New Issue