From c4d9df18fc71abe623efd9307fea66ce42110e56 Mon Sep 17 00:00:00 2001 From: ci-bot Date: Thu, 31 Oct 2024 06:56:39 +0000 Subject: [PATCH] Deployed 56d3a8f3 to 12.0 with MkDocs 1.6.1 and mike 2.1.3 --- 12.0/404.html | 71 +- 12.0/administration/account/index.html | 71 +- 12.0/administration/auditing/index.html | 71 +- .../administration/backup_recovery/index.html | 71 +- 12.0/administration/clean_database/index.html | 71 +- 12.0/administration/export_report/index.html | 71 +- 12.0/administration/index.html | 71 +- 12.0/administration/logs/index.html | 71 +- 12.0/administration/seafile_fsck/index.html | 71 +- 12.0/administration/seafile_gc/index.html | 71 +- .../security_features/index.html | 71 +- .../two_factor_authentication/index.html | 71 +- .../index.html | 71 +- .../index.html | 71 +- 12.0/changelog/client-changelog/index.html | 71 +- .../drive-client-changelog/index.html | 71 +- 12.0/changelog/index.html | 71 +- .../changelog/server-changelog-old/index.html | 71 +- 12.0/changelog/server-changelog/index.html | 71 +- .../config/admin_roles_permissions/index.html | 71 +- 12.0/config/auth_switch/index.html | 71 +- 12.0/config/auto_login_seadrive/index.html | 71 +- 12.0/config/ccnet-conf/index.html | 71 +- .../config_seafile_with_ADFS/index.html | 71 +- .../customize_email_notifications/index.html | 71 +- .../details_about_file_search/index.html | 372 +- 12.0/config/env/index.html | 71 +- 12.0/config/index.html | 71 +- 12.0/config/ldap_in_11.0_ce/index.html | 71 +- 12.0/config/ldap_in_11.0_pro/index.html | 71 +- 12.0/config/multi_institutions/index.html | 71 +- 12.0/config/multi_tenancy/index.html | 71 +- 12.0/config/oauth/index.html | 71 +- 12.0/config/ocm/index.html | 71 +- 12.0/config/remote_user/index.html | 71 +- 12.0/config/roles_permissions/index.html | 408 +- 12.0/config/saml2_in_10.0/index.html | 71 +- 12.0/config/seafevents-conf/index.html | 71 +- 12.0/config/seafile-conf/index.html | 71 +- 12.0/config/seahub_customization/index.html | 115 +- 12.0/config/seahub_settings_py/index.html | 161 +- 12.0/config/sending_email/index.html | 71 +- .../shibboleth_authentication/index.html | 71 +- 12.0/config/single_sign_on/index.html | 71 +- 12.0/develop/build_seafile/index.html | 71 +- 12.0/develop/data_model/index.html | 71 +- 12.0/develop/index.html | 71 +- 12.0/develop/linux/index.html | 71 +- 12.0/develop/osx/index.html | 71 +- 12.0/develop/rpi/index.html | 71 +- 12.0/develop/server/index.html | 71 +- 12.0/develop/translation/index.html | 71 +- 12.0/develop/web_api_v2.1/index.html | 71 +- 12.0/develop/windows/index.html | 71 +- .../extension/distributed_indexing/index.html | 4556 +++++++++++++++++ 12.0/extension/fuse/index.html | 74 +- 12.0/extension/libreoffice_online/index.html | 74 +- 12.0/extension/notification-server/index.html | 74 +- 12.0/extension/office_web_app/index.html | 80 +- 12.0/extension/only_office/index.html | 74 +- 12.0/extension/setup_seadoc/index.html | 74 +- 12.0/extension/virus_scan/index.html | 86 +- .../virus_scan_with_clamav/index.html | 80 +- .../virus_scan_with_kav4fs/index.html | 80 +- 12.0/extension/webdav/index.html | 74 +- 12.0/index.html | 71 +- 12.0/introduction/components/index.html | 71 +- 12.0/introduction/contribution/index.html | 71 +- .../file_permission_management/index.html | 71 +- 12.0/introduction/roadmap/index.html | 71 +- 12.0/outdate/change_default_java/index.html | 71 +- 12.0/outdate/kerberos_config/index.html | 71 +- 12.0/outdate/outlook_addin_config/index.html | 71 +- 12.0/outdate/seaf_encrypt/index.html | 71 +- 12.0/outdate/terms_and_conditions/index.html | 71 +- 12.0/outdate/using_fuse/index.html | 71 +- 12.0/outdate/using_syslog/index.html | 71 +- 12.0/outdate/video_thumbnails/index.html | 71 +- 12.0/search/search_index.json | 2 +- 12.0/setup/caddy/index.html | 71 +- .../cluster_deploy_with_docker/index.html | 71 +- 12.0/setup/cluster_deploy_with_k8s/index.html | 71 +- 12.0/setup/migrate_backends_data/index.html | 71 +- .../migrate_ce_to_pro_with_docker/index.html | 71 +- .../migrate_non_docker_to_docker/index.html | 71 +- 12.0/setup/overview/index.html | 71 +- .../index.html | 71 +- .../setup/seafile_docker_autostart/index.html | 71 +- 12.0/setup/setup_ce_by_docker/index.html | 71 +- 12.0/setup/setup_pro_by_docker/index.html | 71 +- 12.0/setup/setup_with_amazon_s3/index.html | 71 +- .../index.html | 71 +- 12.0/setup/setup_with_ceph/index.html | 71 +- .../index.html | 71 +- 12.0/setup/setup_with_oss/index.html | 71 +- 12.0/setup/setup_with_swift/index.html | 71 +- .../deploy_in_a_cluster/index.html | 71 +- .../index.html | 71 +- 12.0/setup_binary/fail2ban/index.html | 71 +- .../setup_binary/https_with_apache/index.html | 71 +- 12.0/setup_binary/https_with_nginx/index.html | 71 +- 12.0/setup_binary/installation_ce/index.html | 71 +- 12.0/setup_binary/installation_pro/index.html | 71 +- .../memcached_mariadb_cluster/index.html | 71 +- .../migrate_from_sqlite_to_mysql/index.html | 71 +- 12.0/setup_binary/outline_ce/index.html | 71 +- 12.0/setup_binary/outline_pro/index.html | 71 +- .../index.html | 71 +- .../setup_seafile_cluster_with_nfs/index.html | 71 +- .../start_seafile_at_system_bootup/index.html | 71 +- 12.0/setup_binary/using_logrotate/index.html | 71 +- 12.0/sitemap.xml | 242 +- 12.0/sitemap.xml.gz | Bin 1341 -> 1358 bytes 12.0/upgrade/upgrade/index.html | 71 +- 12.0/upgrade/upgrade_a_cluster/index.html | 71 +- .../upgrade_a_cluster_docker/index.html | 71 +- 12.0/upgrade/upgrade_docker/index.html | 71 +- .../upgrade_notes_for_10.0.x/index.html | 71 +- .../upgrade_notes_for_11.0.x/index.html | 71 +- .../upgrade_notes_for_12.0.x/index.html | 71 +- .../upgrade_notes_for_7.0.x/index.html | 71 +- .../upgrade_notes_for_7.1.x/index.html | 71 +- .../upgrade_notes_for_8.0.x/index.html | 71 +- .../upgrade_notes_for_9.0.x/index.html | 71 +- 124 files changed, 13516 insertions(+), 636 deletions(-) create mode 100644 12.0/extension/distributed_indexing/index.html diff --git a/12.0/404.html b/12.0/404.html index 1c3039d4..b25c7b9c 100644 --- a/12.0/404.html +++ b/12.0/404.html @@ -2114,7 +2114,7 @@ - Virus Scan (Pro) + Cluster @@ -2123,6 +2123,75 @@ + + + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • + + + + + + + + + + + + + + + + + + + +
  • + + + + + + + + +
  • @@ -2864,48 +2957,6 @@ -
  • - -
  • - - - Distributed indexing - - - - -
  • @@ -4227,6 +4278,30 @@ + +
  • @@ -4287,48 +4362,6 @@ -
  • - -
  • - - - Distributed indexing - - - - -
  • @@ -4380,21 +4413,74 @@ repo_files_index_name = your-repo-files-index-name # default is `repofiles`

    Enable full text search for Office/PDF files

    Full text search is not enabled by default to save system resources. If you want to enable it, you need to follow the instructions below.

    -

    First you have to set the value of index_office_pdf option in seafevents.conf to true.

    -

    Then restart seafile server

    -
      cd /data/haiwen/seafile-pro-server-1.7.0/
    -  ./seafile.sh restart
    +

    Modify seafevents.conf

    +
    +
    +
    +
    cd /opt/seafile-data/seafile/conf
    +nano seafevents.conf
     
    -

    You need to delete the existing search index and recreate it.

    -
      ./pro/pro.py search --clear
    -  ./pro/pro.py search --update
    +
    +
    +
    cd /opt/seafile/conf
    +nano seafevents.conf
     
    +
    +
    +
    +

    set index_office_pdf to true

    +
    ...
    +[INDEX FILES]
    +...
    +index_office_pdf=true
    +...
    +
    +

    Restart Seafile server

    +
    +
    +
    +
    docker exec -it seafile bash
    +cd /scripts
    +./seafile.sh restart
    +
    +# delete the existing search index and recreate it
    +./pro/pro.py search --clear
    +./pro/pro.py search --update
    +
    +
    +
    +
    cd /opt/seafile/seafile-server-latest
    +./seafile.sh restart
    +
    +# delete the existing search index and recreate it
    +./pro/pro.py search --clear
    +./pro/pro.py search --update
    +
    +
    +
    +

    Common problems

    How to rebuild the index if something went wrong

    You can rebuild search index by running:

    -
    ./pro/pro.py search --clear
    -./pro/pro.py search --update
    +
    +
    +
    +
    docker exec -it seafile bash
    +cd /scripts
    +./pro/pro.py search --clear
    +./pro/pro.py search --update
     
    +
    +
    +
    cd /opt/seafile/seafile-server-latest
    +./pro/pro.py search --clear
    +./pro/pro.py search --update
    +
    +
    +
    +
    +
    +

    Tip

    If this does not work, you can try the following steps:

    1. Stop Seafile
    2. @@ -4402,6 +4488,7 @@ repo_files_index_name = your-repo-files-index-name # default is `repofiles`
    3. Restart Seafile
    4. Wait one minute then run ./pro/pro.py search --update
    +

    Access the AWS elasticsearch service using HTTPS

    1. @@ -4435,9 +4522,21 @@ repo_files_index_name = your-repo-files-index-name # default is `repofiles`
    2. Make sure you have started Seafile Server
    3. Update the search index manually:
    4. -
      cd haiwen/seafile-pro-server-2.0.4
      -./pro/pro.py search --update
      +
      +
      +
      +
      docker exec -it seafile bash
      +cd /scripts
      +./pro/pro.py search --update
       
      +
      +
      +
      cd /opt/seafile/seafile-server-latest
      +./pro/pro.py search --update
      +
      +
      +
      +

      Encrypted files cannot be searched

      This is because the server cannot index encrypted files, since they are encrypted.

      Increase the heap size for the java search process

      @@ -4447,79 +4546,20 @@ repo_files_index_name = your-repo-files-index-name # default is `repofiles` ### It is recommended to set the values of the above two configurations to the same size.

      Restart the seafile service to make the above changes take effect:

      -
      ./seafile.sh restart
      -./seahub.sh restart
      +
      +
      +
      +
      docker compose restart
       
      -

      Distributed indexing

      -

      If you use a cluster to deploy Seafile, you can use distributed indexing to realize real-time indexing and improve indexing efficiency. The indexing process is as follows:

      -

      -

      Install redis and modify configuration files

      -

      First, install redis on all frontend nodes(If you use redis cloud service, skip this step and modify the configuration files directly):

      -

      For Ubuntu:

      -
      $ apt install redis-server
      -
      -

      For CentOS:

      -
      $ yum install redis
      -
      -

      Then, install python redis third-party package on all frontend nodes:

      -
      $ pip install redis
      -
      -

      Next, modify the seafevents.conf on all frontend nodes, add the following config items:

      -
      [EVENTS PUBLISH]
      -mq_type=redis   # must be redis
      -enabled=true
      -
      -[REDIS]
      -server=127.0.0.1   # your redis server host
      -port=6379          # your redis server port
      -password=xxx       # your redis server password, if not password, do not set this item
      -
      -

      Next, modify the seafevents.conf on the backend node to disable the scheduled indexing task, because the scheduled indexing task and the distributed indexing task conflict.

      -
      [INDEX FILES]
      -enabled=true
      -     |
      -     V
      -enabled=false   
      -
      -

      Next, restart Seafile to make the configuration take effect:

      -
      $ ./seafile.sh restart && ./seahub.sh restart
      -
      -

      Deploy distributed indexing

      -

      First, prepare a seafes master node and several seafes slave nodes, the number of slave nodes depends on your needs. Deploy Seafile on these nodes, and copy the configuration files in the conf directory from the frontend nodes. The master node and slave nodes do not need to start Seafile, but need to read the configuration files to obtain the necessary information.

      -

      Next, create a configuration file index-master.conf in the conf directory of the master node, e.g.

      -
      [DEFAULT]
      -mq_type=redis   # must be redis
      -
      -[REDIS]
      -server=127.0.0.1   # your redis server host
      -port=6379          # your redis server port
      -password=xxx       # your redis server password, if not password, do not set this item
      -
      -

      Execute ./run_index_master.sh [start/stop/restart] in the seafile-server-last directory to control the program to start, stop and restart.

      -

      Next, create a configuration file index-slave.conf in the conf directory of all slave nodes, e.g.

      -
      [DEFAULT]
      -mq_type=redis     # must be redis
      -index_workers=2   # number of threads to create/update indexes, you can increase this value according to your needs
      -
      -[REDIS]
      -server=127.0.0.1   # your redis server host
      -port=6379          # your redis server port
      -password=xxx       # your redis server password, if not password, do not set this item
      -
      -

      Execute ./run_index_worker.sh [start/stop/restart] in the seafile-server-last directory to control the program to start, stop and restart.

      -
      -

      Note

      -

      The index worker connects to backend storage directly. You don't need to run seaf-server in index worker node.

      -

      Some commands in distributed indexing

      -

      Rebuild search index, execute in the seafile-server-last directory:

      -
      $ ./pro/pro.py search --clear
      -$ ./run_index_master.sh python-env index_op.py --mode resotre_all_repo
      +
      +
      cd /opt/seafile/seafile-server-latest
      +./seafile.sh restart
      +./seahub.sh restart
       
      -

      List the number of indexing tasks currently remaining, execute in the seafile-server-last directory:

      -
      $ ./run_index_master.sh python-env index_op.py --mode show_all_task
      -
      -

      The above commands need to be run on the master node.

      +
      +
      +
      diff --git a/12.0/config/env/index.html b/12.0/config/env/index.html index df97a5ae..27b9ef87 100644 --- a/12.0/config/env/index.html +++ b/12.0/config/env/index.html @@ -2131,7 +2131,7 @@ - Virus Scan (Pro) + Cluster @@ -2140,6 +2140,75 @@ + + + + + + + + + + + + + + + + + + + + + +
    5. + + + + + + + + +
    6. + + + + + + + + + + + + + + + + + + + +
    7. + + + + + + + + +
    8. + + + + + + + + + + + + + + + + + + + +
    9. + + + + + + + + +
    10. + + + + + + + + + + + + + + + + + + + +
    11. + + + + + + + + +
    12. + + + + + + + + + + + + + + + + + + + +
    13. + + + + + + + + +
    14. + + + + + + + + + + + + + + + + + + + +
    15. + + + + + + + + +
    16. + + + + + + + + + + + + + + + + + + + +
    17. + + + + + + + + +
    18. + + + + + + + + + + + + + + + + + + + +
    19. + + + + + + + + +
    20. + + + + + + + + + + + + + + + + + + + +
    21. + + + + + + + + +
    22. + + + + + + + + + + + + + + + + + + + +
    23. + + + + + + + + +
    24. + + + + + + + + + + + + + + + + + + + +
    25. + + + + + + + + +
    26. + + + + + + + + + + + + + + + + + + + +
    27. + + + + + + + + +
    28. + + + + + + + + + + + + + + + + + + + +
    29. + + + + + + + + +
    30. + + + + + + + + + + + + + + + + + + + +
    31. + + + + + + + + +
    32. + + + + + + + + + + + + + + + + + + + +
    33. + + + + + + + + +
    34. @@ -4241,30 +4286,6 @@ - -
    35. @@ -4384,7 +4405,9 @@

      Refer to email sending documentation.

      Cache

      Seahub caches items(avatars, profiles, etc) on file system by default(/tmp/seahub_cache/). You can replace with Memcached or Redis.

      -

      Memcached

      +
      +
      +
      # on Debian/Ubuntu 18.04+
       apt-get install memcached libmemcached-dev -y
       pip3 install --timeout=3600 pylibmc django-pylibmc
      @@ -4399,9 +4422,22 @@ systemctl enable --now memcached
           },
       }
       
      -

      Redis

      -

      Redis support is added in version 11.0.

      +
      +
      +
      +

      Redis supported is added in Seafile version 11.0

      +
      +
        +
      1. +

        Install Redis with package installers in your OS.

        +
      2. +
      3. Please refer to Django's documentation about using Redis cache.

        +
      4. +
      +
      +
      +

      Security settings

      # For security consideration, please set to match the host/domain of your site, e.g., ALLOWED_HOSTS = ['.example.com'].
       # Please refer https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts for details.
      @@ -4837,14 +4873,27 @@ def custom_get_groups(request):
       

      You should NOT change the name of custom_get_groups and seahub_custom_functions/__init__.py

      -
      -

      Success

      +
      +

      Tip

      • You need to restart seahub so that your changes take effect.
      • +
      +
      +
      +
      +
      docker compose restart
      +
      +
      +
      +
      cd /opt/seafile/seafile-server-latest
      +./seahub.sh restart
      +
      +
      +
      +
      +
      • If your changes don't take effect, You may need to delete 'seahub_setting.pyc'. (A cache file)
      -
      ./seahub.sh restart
      -
      diff --git a/12.0/config/sending_email/index.html b/12.0/config/sending_email/index.html index 024cfcd3..a8a39bbc 100644 --- a/12.0/config/sending_email/index.html +++ b/12.0/config/sending_email/index.html @@ -2131,7 +2131,7 @@ - Virus Scan (Pro) + Cluster @@ -2140,6 +2140,75 @@ + +
    36. + + + + + + + + + + + + + + + + + + + +
    37. + + + + + + + + +
    38. + + + + + + + + + + + + + + + + + + + +
    39. + + + + + + + + +
    40. + + + + + + + + + + + + + + + + + + + +
    41. + + + + + + + + +
    42. + + + + + + + + + + + + + + + + + + + +
    43. + + + + + + + + +
    44. + + + + + + + + + + + + + + + + + + + +
    45. + + + + + + + + +
    46. + + + + + + + + + + + + + + + + + + + +
    47. + + + + + + + + +
    48. + + + + + + + + + + + + + + + + + + + +
    49. + + + + + + + + +
    50. + + + + + + + + + + + + + + + + + + + +
    51. + + + + + + + + +
    52. + + + + + + + + + + + + + + + + + + + +
    53. + + + + + + + + +
    54. + + + + + + + + + + + + + + + + + + + +
    55. + + + + + + + + +
    56. + + + + + + + + + + + + + + + + + + + +
    57. + + + + + + + + +
    58. + + + + + + + + + + + + + + + + + + + +
    59. + + + + + + + + +
    60. + + + + + + + + + + + + + + + + + + + +
    61. + + + + + + + + +
    62. + + + + + + + + + + + + + + + + + + + + + + +
    63. + + + + + + + + +
    64. + + + + + + + + + + + + + + + + + + + + + + +
    65. + + + + + + + + +
    66. + + + + + + + + + + + + + + + + + + + + + + +
    67. + + + + + + + + +
    68. + + + + + + + + + + + + + + + + + + + + + + +
    69. + + + + + + + + +
    70. + + + + + + + + + + + + + + + + + + + + + + +
    71. + + + + + + + + +
    72. + + + + + + + + + + + + + + + + + + + + + + +
    73. + + + + + + + + +
    74. + + + + + + + + + + + + + + + + + + + + + + +
    75. + + + + + + + + +
    76. + + + + + + + + + + + + + + + + + + + +
    77. + + + + + + + + +
    78. + + + + + + + + + + + + + + + + + + + +
    79. + + + + + + + + +
    80. + + + + + + + + + + + + + + + + + + + +
    81. + + + + + + + + +
    82. + + + + + + + + + + + + + + + + + + + +
    83. + + + + + + + + +
    84. + + + + + + + + + + + + + + + + + + + +
    85. + + + + + + + + +
    86. + + + + + + + + + + + + + + + + + + + +
    87. + + + + + + + + +
    88. + + + + + + + + + + + + + + + + + + + +
    89. + + + + + + + + +
    90. + + + + + + + + + + + + + + + + + + + +
    91. + + + + + + + + +
    92. + + + + + + + + + + + + + + + + + + + +
    93. + + + + + + + + +
    94. + + + + + + + + + + + + + + + + + + + +
    95. + + + + + + + + +
    96. + + + + + + + + + + + + + + + + + + + +
    97. + + + + + + + + +
    98. + + + + + + + + + + + + + + + + + + + +
    99. + + + + + + + + +
    100. + + + + + + + + + + + + + + + + + + + +
    101. + + + + + + + + +