Skip to content

Commit

Permalink
Update document for ccnet.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
seafile-dev committed Nov 7, 2024
1 parent 3dc2682 commit 4e6b580
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
19 changes: 18 additions & 1 deletion manual/config/ccnet-conf.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

```
Expand All @@ -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:

```
Expand Down
1 change: 1 addition & 0 deletions manual/upgrade/upgrade_notes_for_12.0.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 4e6b580

Please sign in to comment.