Skip to content

Commit

Permalink
Merge pull request #283 from haiwen/unix_socket
Browse files Browse the repository at this point in the history
Update unix_socket option
  • Loading branch information
freeplant authored Apr 26, 2024
2 parents 92de31f + f373eb1 commit 04a0e03
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
9 changes: 0 additions & 9 deletions manual/config/ccnet-conf.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,6 @@ CA_PATH = /etc/mysql/ca.pem

When set `use_ssl` to true and `skip_verify` to false, it will check whether the MySQL server certificate is legal through the CA configured in `ca_path`. The `ca_path` is a trusted CA certificate path for signing MySQL server certificates. When `skip_verify` is true, there is no need to add the `ca_path` option. The MySQL server certificate won't be verified at this time.

## Using unix_socket Authentication Plugin

Since Seafile 10.0.3 and 10.0.7 Pro, you can use unix_socket authentication plugin provided by MariaDB/MySQL. To enable it, you need to specify the `UNIX_SOCKET` option without user name and password.

```
[Database]
UNIX_SOCKET = /var/run/mysqld/mysqld.sock
```

## Changing name of table 'Group'

There is a table named 'Group' in ccnet database, however, 'Group' is the key word in some of databases, you can configure this table name to avoid conflicts if necessary:
Expand Down
8 changes: 0 additions & 8 deletions manual/config/seafevents-conf.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ enabled = true
interval = 30m
```

Since Seafile 11.0, you can use unix_socket authentication plugin provided by MariaDB/MySQL. To enable it, you need to specify the unix_socket option without password.

```
[DATABASE]
#password = password
unix_socket = /var/run/mysqld/mysqld.sock
```

> The following configurations for Pro Edition only
```
Expand Down
8 changes: 0 additions & 8 deletions manual/config/seafile-conf.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,6 @@ ca_path = /etc/mysql/ca.pem
```
When set `use_ssl` to true and `skip_verify` to false, it will check whether the MySQL server certificate is legal through the CA configured in `ca_path`. The `ca_path` is a trusted CA certificate path for signing MySQL server certificates. When `skip_verify` is true, there is no need to add the `ca_path` option. The MySQL server certificate won't be verified at this time.

Since Seafile 11.0.1 and 11.0.1 Pro, you can use unix_socket authentication plugin provided by MariaDB/MySQL. To enable it, you need to specify the `unix_socket` option without user name and password.
```
[database]
#user = root
#password = root
unix_socket = /var/run/mysqld/mysqld.sock
```

## File Locking (Pro edition only)

The Seafile Pro server auto expires file locks after some time, to prevent a locked file being locked for too long. The expire time can be tune in seafile.conf file.
Expand Down

0 comments on commit 04a0e03

Please sign in to comment.