From ec0bc4277085e8641bea7717e6bdd7f3a8afabd5 Mon Sep 17 00:00:00 2001 From: Jizhou Deng Date: Mon, 17 Nov 2025 15:25:56 +0800 Subject: [PATCH 1/4] Seafile Obsolete Configurations --- .../seafile_obsolete_configurations.md | 112 ++++++++++++++++++ mkdocs.yml | 1 + 2 files changed, 113 insertions(+) create mode 100644 manual/upgrade/seafile_obsolete_configurations.md diff --git a/manual/upgrade/seafile_obsolete_configurations.md b/manual/upgrade/seafile_obsolete_configurations.md new file mode 100644 index 00000000..e2943116 --- /dev/null +++ b/manual/upgrade/seafile_obsolete_configurations.md @@ -0,0 +1,112 @@ +# Seafile Obsolete Configurations + +The Seafile configuration files are located in the `/opt/seafile-data/seafile/conf/` directory. + +## **Seafile 12 to 13 Obsolete Configurations** + +### seafevents.conf + +You should remove the `[DATABASE]` configuration block. + +### seafile.conf +You should remove the `[database]` and `[memcached]` configuration block. + +### seahub_settings.py +You should remove the `SERVICE_URL`, `DATABASES = {...}`, `CACHES = {...}`, `COMPRESS_CACHE_BACKEND` and `FILE_SERVER_ROOT` configuration block. + +### env +The env file has undergone major changes. It is recommended that you download the latest env file. + +#### Removed Configurations + +```shell +SEAFILE_MEMCACHED_IMAGE=docker.seafile.top/seafileltd/memcached:1.6.29 + +INIT_S3_STORAGE_BACKEND_CONFIG=false +INIT_S3_COMMIT_BUCKET= +INIT_S3_FS_BUCKET= +INIT_S3_BLOCK_BUCKET= +INIT_S3_KEY_ID= +INIT_S3_SECRET_KEY= +INIT_S3_USE_V4_SIGNATURE=true +INIT_S3_AWS_REGION=us-east-1 +INIT_S3_HOST= +INIT_S3_USE_HTTPS=true + +NOTIFICATION_SERVER_VOLUME=/opt/notification-data + +SS_S3_USE_V4_SIGNATURE=false +SS_S3_ACCESS_ID= +SS_S3_ACCESS_SECRET= +SS_S3_ENDPOINT= +SS_S3_BUCKET= +SS_S3_USE_HTTPS=true +SS_S3_PATH_STYLE_REQUEST=true +SS_S3_AWS_REGION=us-east-1 +SS_S3_SSE_C_KEY= +``` + +#### New Configurations + +```shell +BASIC_STORAGE_PATH=/opt +CACHE_PROVIDER=redis # options: redis (recommend), memcached +ENABLE_NOTIFICATION_SERVER=false +ENABLE_SEAFILE_AI=false +MD_FILE_COUNT_LIMIT=100000 +MD_IMAGE=docker.seafile.top/seafileltd/seafile-md-server:13.0-latest +MD_STORAGE_TYPE=$SEAF_SERVER_STORAGE_TYPE # disk, s3 +MEMCACHED_HOST=memcached +MEMCACHED_PORT=11211 +NOTIFICATION_SERVER_URL= +REDIS_HOST=redis +REDIS_PASSWORD= +REDIS_PORT=6379 +S3_AWS_REGION=us-east-1 +S3_BLOCK_BUCKET= +S3_COMMIT_BUCKET= +S3_FS_BUCKET= +S3_HOST= +S3_KEY_ID= +S3_MD_BUCKET= # for metadata-server +S3_PATH_STYLE_REQUEST=false +S3_SECRET_KEY= +S3_SSE_C_KEY= +S3_SS_BUCKET= # for seasearch +S3_USE_HTTPS=true +S3_USE_V4_SIGNATURE=true +SEAFILE_AI_LLM_KEY= # your llm key +SEAFILE_AI_LLM_MODEL=gpt-4o-mini +SEAFILE_AI_LLM_TYPE=openai +SEAFILE_AI_LLM_URL= +SEAFILE_MYSQL_DB_CCNET_DB_NAME=ccnet_db +SEAFILE_MYSQL_DB_SEAFILE_DB_NAME=seafile_db +SEAFILE_MYSQL_DB_SEAHUB_DB_NAME=seahub_db +SEAFILE_REDIS_IMAGE=redis +SEAF_SERVER_STORAGE_TYPE=disk # disk, s3, multiple +``` + +## **Seafile 11 to 12 Obsolete Configurations** + +### ccnet.conf +You should remove the entire `ccnet.conf` configuration file. + +### gunicorn.conf.py + +#### New Configurations + +```shell +# for forwarder headers +forwarder_headers = 'SCRIPT_NAME,PATH_INFO,REMOTE_USER' +``` + +### seafile.conf + +You should remove the `[notification]` configuration block. + +#### New Configurations + +```shell +[memcached] +memcached_options = --SERVER=memcached --POOL-MIN=10 --POOL-MAX=100 +``` diff --git a/mkdocs.yml b/mkdocs.yml index 3daa2699..d38fc7e0 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -198,6 +198,7 @@ nav: - Upgrade notes for 11.0.x: upgrade/upgrade_notes_for_11.0.x.md - Upgrade notes for 10.0.x: upgrade/upgrade_notes_for_10.0.x.md - Upgrade notes for 9.0.x: upgrade/upgrade_notes_for_9.0.x.md + - Summary of Seafile Obsolete Configurations: upgrade/seafile_obsolete_configurations.md - Developing: - Outline: develop/README.md - How to Build Seafile: From f7939b193a069005fe0088bd28981b733d2185a3 Mon Sep 17 00:00:00 2001 From: Jizhou Deng Date: Tue, 18 Nov 2025 13:50:06 +0800 Subject: [PATCH 2/4] summary of seafile obsolete configurations. --- .../seafile_obsolete_configurations.md | 60 +------------------ 1 file changed, 1 insertion(+), 59 deletions(-) diff --git a/manual/upgrade/seafile_obsolete_configurations.md b/manual/upgrade/seafile_obsolete_configurations.md index e2943116..6b7446ce 100644 --- a/manual/upgrade/seafile_obsolete_configurations.md +++ b/manual/upgrade/seafile_obsolete_configurations.md @@ -15,9 +15,7 @@ You should remove the `[database]` and `[memcached]` configuration block. You should remove the `SERVICE_URL`, `DATABASES = {...}`, `CACHES = {...}`, `COMPRESS_CACHE_BACKEND` and `FILE_SERVER_ROOT` configuration block. ### env -The env file has undergone major changes. It is recommended that you download the latest env file. - -#### Removed Configurations +The following configurations are removed or renamed to new ones. ```shell SEAFILE_MEMCACHED_IMAGE=docker.seafile.top/seafileltd/memcached:1.6.29 @@ -46,67 +44,11 @@ SS_S3_AWS_REGION=us-east-1 SS_S3_SSE_C_KEY= ``` -#### New Configurations - -```shell -BASIC_STORAGE_PATH=/opt -CACHE_PROVIDER=redis # options: redis (recommend), memcached -ENABLE_NOTIFICATION_SERVER=false -ENABLE_SEAFILE_AI=false -MD_FILE_COUNT_LIMIT=100000 -MD_IMAGE=docker.seafile.top/seafileltd/seafile-md-server:13.0-latest -MD_STORAGE_TYPE=$SEAF_SERVER_STORAGE_TYPE # disk, s3 -MEMCACHED_HOST=memcached -MEMCACHED_PORT=11211 -NOTIFICATION_SERVER_URL= -REDIS_HOST=redis -REDIS_PASSWORD= -REDIS_PORT=6379 -S3_AWS_REGION=us-east-1 -S3_BLOCK_BUCKET= -S3_COMMIT_BUCKET= -S3_FS_BUCKET= -S3_HOST= -S3_KEY_ID= -S3_MD_BUCKET= # for metadata-server -S3_PATH_STYLE_REQUEST=false -S3_SECRET_KEY= -S3_SSE_C_KEY= -S3_SS_BUCKET= # for seasearch -S3_USE_HTTPS=true -S3_USE_V4_SIGNATURE=true -SEAFILE_AI_LLM_KEY= # your llm key -SEAFILE_AI_LLM_MODEL=gpt-4o-mini -SEAFILE_AI_LLM_TYPE=openai -SEAFILE_AI_LLM_URL= -SEAFILE_MYSQL_DB_CCNET_DB_NAME=ccnet_db -SEAFILE_MYSQL_DB_SEAFILE_DB_NAME=seafile_db -SEAFILE_MYSQL_DB_SEAHUB_DB_NAME=seahub_db -SEAFILE_REDIS_IMAGE=redis -SEAF_SERVER_STORAGE_TYPE=disk # disk, s3, multiple -``` - ## **Seafile 11 to 12 Obsolete Configurations** ### ccnet.conf You should remove the entire `ccnet.conf` configuration file. -### gunicorn.conf.py - -#### New Configurations - -```shell -# for forwarder headers -forwarder_headers = 'SCRIPT_NAME,PATH_INFO,REMOTE_USER' -``` - ### seafile.conf You should remove the `[notification]` configuration block. - -#### New Configurations - -```shell -[memcached] -memcached_options = --SERVER=memcached --POOL-MIN=10 --POOL-MAX=100 -``` From 657435af6a7ca39becedec86c441708a0381bf41 Mon Sep 17 00:00:00 2001 From: Jizhou Deng Date: Tue, 18 Nov 2025 15:17:29 +0800 Subject: [PATCH 3/4] fix some errors --- manual/upgrade/seafile_obsolete_configurations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manual/upgrade/seafile_obsolete_configurations.md b/manual/upgrade/seafile_obsolete_configurations.md index 6b7446ce..59d9acd7 100644 --- a/manual/upgrade/seafile_obsolete_configurations.md +++ b/manual/upgrade/seafile_obsolete_configurations.md @@ -2,7 +2,7 @@ The Seafile configuration files are located in the `/opt/seafile-data/seafile/conf/` directory. -## **Seafile 12 to 13 Obsolete Configurations** +## Seafile 12 to 13 Obsolete Configurations ### seafevents.conf @@ -44,7 +44,7 @@ SS_S3_AWS_REGION=us-east-1 SS_S3_SSE_C_KEY= ``` -## **Seafile 11 to 12 Obsolete Configurations** +## Seafile 11 to 12 Obsolete Configurations ### ccnet.conf You should remove the entire `ccnet.conf` configuration file. From 3a091b926b437db15cfcdfb4516a83daa5beaaae Mon Sep 17 00:00:00 2001 From: Daniel Pan Date: Tue, 18 Nov 2025 21:45:24 +0800 Subject: [PATCH 4/4] Update summary title for obsolete configurations --- mkdocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdocs.yml b/mkdocs.yml index d38fc7e0..d63dbc20 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -198,7 +198,7 @@ nav: - Upgrade notes for 11.0.x: upgrade/upgrade_notes_for_11.0.x.md - Upgrade notes for 10.0.x: upgrade/upgrade_notes_for_10.0.x.md - Upgrade notes for 9.0.x: upgrade/upgrade_notes_for_9.0.x.md - - Summary of Seafile Obsolete Configurations: upgrade/seafile_obsolete_configurations.md + - Summary of obsolete configurations: upgrade/seafile_obsolete_configurations.md - Developing: - Outline: develop/README.md - How to Build Seafile: