Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions docs/installation/advanced/seafile.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,26 @@
---
status: wip
---

# Integrate with Seafile

<!-- md:version 4.0 -->
<!-- md:flag enterprise -->

When integrating SeaTable and Seafile, users can add files from Seafile libraries in file columns and users can transfer files from SeaTable to Seafile.
When integrating SeaTable and Seafile, users can add files from Seafile libraries in file columns.

### Scope of the Connection

The Seafile connection to SeaTable enables you to

- Choose a file as attachment from the Seafile library in SeaTable
- Save attachments in a SeaTable base to your Seafile library

### How to Setup the Connection on SeaTable Server Side

- Go to Seafile and generate an API token for your library
- Go to SeaTable and click on the 3-dots menu of a base, go to Advanced > Connect Seafile and enter the full URL (including “http” or “https”) and the API token and then submit.
- Go to SeaTable and click on the 3-dots menu inside a base, go to Third party integration > Seafile and enter the full URL (including “http” or “https”) and the API token and then submit.

### Requirements on the Seafile Server Side

The cross-domain permissions must be set. This can be done by adding the "Access-Control-Allow-Origin" header.

Add the following code block to the configuration file `seafile.conf` in `/etc/nginx/sites-available/`:
Add the following code block to the configuration file `seafile.conf` in `/etc/nginx/sites-available/` or `seafile.nginx.conf` in `/etc/nginx/sites-enabled` (the exact filename and path depend on your Seafile version and installation method):

```
location / {
Expand All @@ -36,8 +31,14 @@ Add the following code block to the configuration file `seafile.conf` in `/etc/n
add_header Access-Control-Allow-Headers "deviceType,token, authorization, content-type";
return 204;
}


proxy_pass http://127.0.0.1:8000;
...............

```

### Current Limitations

- Only a single library can be linked to a specific base
- The base editor does not display thumbnails for images stored inside an external Seafile library
- Image columns are not supported yet