docs(seafile): helmify docs (#32966)

**Description**
<!--
helmify docs
-->
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code
- [x] 📜 Documentation Changes

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [x] 📄 I have made changes to the documentation
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning
- [x] I made sure the title starts with `feat(chart-name):`,
`fix(chart-name):`, `chore(chart-name):`, `docs(chart-name):` or
`fix(docs):`

**➕ App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
This commit is contained in:
Boemeltrein
2025-03-07 09:09:33 +00:00
committed by GitHub
parent 942e6d8c66
commit 4293caff7d
6 changed files with 34 additions and 11 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 KiB

+34 -11
View File
@@ -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
<br>
![SeafileWebDAV](./img/SeafileWebDAV.png)