From 8af7fb30b275967f9563e60cfb9933d71c3e159f Mon Sep 17 00:00:00 2001 From: Junxiang Huang Date: Fri, 25 Oct 2024 13:33:37 +0800 Subject: [PATCH] opt: structures --- manual/config/seafile-conf.md | 6 +++++- manual/extension/virus_scan.md | 2 +- ..._clamav_with_seafile.md => virus_scan_with_clamav.md} | 0 manual/stylesheets/extra.css | 6 +++++- mkdocs.yml | 9 ++++++++- 5 files changed, 19 insertions(+), 4 deletions(-) rename manual/extension/{deploy_clamav_with_seafile.md => virus_scan_with_clamav.md} (100%) diff --git a/manual/config/seafile-conf.md b/manual/config/seafile-conf.md index 18317682..dfd6f0f0 100644 --- a/manual/config/seafile-conf.md +++ b/manual/config/seafile-conf.md @@ -223,7 +223,9 @@ check_virus_on_web_upload = true ## Database configuration -The whole database configuration is stored in the `[database]` section of the configuration file, whether you use SQLite or MySQL. +The configurations of database are stored in the `[database]` section. + +> From Seafile 11.0, the *SQLite* is not supported. ``` [database] @@ -240,12 +242,14 @@ max_connections=100 When you configure seafile server to use MySQL, the default connection pool size is 100, which should be enough for most use cases. Since Seafile 10.0.2, you can enable the encrypted connections to the MySQL server by adding the following configuration options: + ``` [database] use_ssl = true skip_verify = false 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. ## File Locking (Pro edition only) diff --git a/manual/extension/virus_scan.md b/manual/extension/virus_scan.md index d2de3b7a..2618e61a 100644 --- a/manual/extension/virus_scan.md +++ b/manual/extension/virus_scan.md @@ -35,7 +35,7 @@ cd seafile-server-latest If a virus was detected, you can see scan records and delete infected files on the Virus Scan page in the admin area. ![virus-scan](../images/virus-scan.png) -**INFO**: If you directly use clamav command line tool to scan files, scanning files will takes a lot of time. If you want to speed it up, we recommend to run Clamav as a daemon. Please refer to [Run ClamAV as a Daemon](./deploy_clamav_with_seafile.md) +**INFO**: If you directly use clamav command line tool to scan files, scanning files will takes a lot of time. If you want to speed it up, we recommend to run Clamav as a daemon. Please refer to [Run ClamAV as a Daemon](./virus_scan_with_clamav.md) When run Clamav as a daemon, the `scan_command` should be `clamdscan` in `seafile.conf`. An example for Clamav-daemon is provided below: ``` diff --git a/manual/extension/deploy_clamav_with_seafile.md b/manual/extension/virus_scan_with_clamav.md similarity index 100% rename from manual/extension/deploy_clamav_with_seafile.md rename to manual/extension/virus_scan_with_clamav.md diff --git a/manual/stylesheets/extra.css b/manual/stylesheets/extra.css index ffeaca9b..0c10ad4a 100644 --- a/manual/stylesheets/extra.css +++ b/manual/stylesheets/extra.css @@ -52,4 +52,8 @@ .md-nav__item { padding-left: 16px; -} \ No newline at end of file +} + +.md-nav__item--section { + margin-top: 2em; +} diff --git a/mkdocs.yml b/mkdocs.yml index 7b0f8cbb..9bf20f2d 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -14,6 +14,8 @@ theme: logo: media/seafile-transparent-1024.png favicon: media/favicon.ico features: + - navigation.footer + - navigation.tracking - navigation.sections - navigation.tabs - navigation.top @@ -63,6 +65,11 @@ markdown_extensions: - markdown.extensions.toc: permalink: true toc_depth: "1-4" + - pymdownx.superfences: # allows 1) nesting of fences 2) custom fences 3) disable indented code + custom_fences: + - name: mermaid + class: mermaid + format: !!python/name:pymdownx.superfences.fence_code_format # Page tree nav: @@ -128,7 +135,7 @@ nav: - Office Online Server Integration (Pro): extension/office_web_app.md - Virus Scan (Pro): - Outline: extension/virus_scan.md - - Virus scan with ClamAV: extension/deploy_clamav_with_seafile.md + - Virus scan with ClamAV: extension/virus_scan_with_clamav.md - Virus scan with Kav4fs: extension/virus_scan_with_kav4fs.md - Configuration: - Authentication & Users: