diff --git a/charts/stable/seafile/docs/img/CSRF.png b/charts/stable/seafile/docs/img/CSRF.png deleted file mode 100644 index 891239b140c..00000000000 Binary files a/charts/stable/seafile/docs/img/CSRF.png and /dev/null differ diff --git a/charts/stable/seafile/docs/img/CSRFAdded_SeaHub_Settings.png b/charts/stable/seafile/docs/img/CSRFAdded_SeaHub_Settings.png deleted file mode 100644 index e2c30422dc2..00000000000 Binary files a/charts/stable/seafile/docs/img/CSRFAdded_SeaHub_Settings.png and /dev/null differ diff --git a/charts/stable/seafile/docs/img/SeafileWebDAV.png b/charts/stable/seafile/docs/img/SeafileWebDAV.png index b219a0afd59..cd96e0c7bb0 100644 Binary files a/charts/stable/seafile/docs/img/SeafileWebDAV.png and b/charts/stable/seafile/docs/img/SeafileWebDAV.png differ diff --git a/charts/stable/seafile/docs/img/StockSeahub_settings.png b/charts/stable/seafile/docs/img/StockSeahub_settings.png deleted file mode 100644 index 8ab153f14ee..00000000000 Binary files a/charts/stable/seafile/docs/img/StockSeahub_settings.png and /dev/null differ diff --git a/charts/stable/seafile/docs/img/login.png b/charts/stable/seafile/docs/img/login.png new file mode 100644 index 00000000000..3d714e4b728 Binary files /dev/null and b/charts/stable/seafile/docs/img/login.png differ diff --git a/charts/stable/seafile/docs/install-notes.md b/charts/stable/seafile/docs/install-notes.md index 1b2c2775e1c..b99aee677cf 100644 --- a/charts/stable/seafile/docs/install-notes.md +++ b/charts/stable/seafile/docs/install-notes.md @@ -2,19 +2,34 @@ title: Installation notes and guidelines --- -## CSRF Error +## Minimal example deployment -Starting with Seafile 11, the defaults fail CSRF verification, and you may see the error message when logging in. +```yaml +// values.yaml +workload: + main: + podSpec: + containers: + main: + env: + SEAFILE_SERVER_HOSTNAME: "seafile.${DOMAIN}" + INIT_SEAFILE_ADMIN_EMAIL: me@example.com + INIT_SEAFILE_ADMIN_PASSWORD: a_very_secret_password -![CSRF](./img/CSRF.png) +ingress: + main: + enabled: true + hosts: + - host: seafile.${DOMAIN} + integrations: + traefik: + enabled: true + certManager: + enabled: true + certificateIssuer: cloudflare +``` +![login](./img/login.png) -To fix this, the following must be added to your `seahub_settings.conf` file. It is found inside `/shared/conf`. We recommedend enabling the `Code-server` addon or mounting the container - -![Stock](./img/StockSeahub_settings.png) - -Add an entry for: `CSRF_TRUSTED_ORIGINS = ["https://seafile.YOURDOMAINHERE.com"]` - -![CSRFadded](./img/CSRFAdded_SeaHub_Settings.png) ## Storage @@ -24,11 +39,19 @@ Seafile uses Block storage so files/folders uploaded to Seafile aren't visible b By default WebDAV is disabled by default, as per [upstream docs](https://manual.seafile.com/extension/webdav/). Here's some simple instructions to modify your `seafdav.conf` to enable WebDAV if you wish to use it with Traefik. + **Option 1:** - Enter Seafile Pod Shell - Use the CLI to enter the Seafile WebDAV (`seafdav.conf`) config file - Use vi commands to edit the `Enabled` to `true` and change the share name as desired (default is `/seafdav`). > Use `i` to insert text and and `:wq`, and `ESC key` to exit insert mode - - Restart Seafile and your WebDAV share will be accessible using your domain.com/seafdav +**Option 2:** +- Add [codeserver](https://truecharts.org/guides/addons/code-server/) as addon to the deplyment. +- Browse to `/shared/seafile/conf/seafdav.conf` +- Change `enabled = false` to `enabled = true` +- Restart Seafile and your WebDAV share will be accessible using your domain.com/seafdav + +
+ ![SeafileWebDAV](./img/SeafileWebDAV.png)