Skip to content

Conversation

@simonhammes
Copy link
Collaborator

@simonhammes simonhammes commented Aug 26, 2024

**draft, do not merge**

Closes #24

Notes

Environment Variables (.env)

-> Should be added to https://github.com/datamate-rethink-it/seafile-admin-docs

# SeaDoc
SEAHUB__ENABLE_SEADOC=true
SEAHUB__SEADOC_PRIVATE_KEY='TODO: Generated by pwgen'
SEAHUB__SEADOC_SERVER_URL=https://${SEAFILE_SERVER_HOSTNAME}/sdoc-server
SEAHUB__FILE_CONVERTER_SERVER_URL='http://sdoc-server:8888'

Required manual changes 🤷

/opt/seadoc-data/sdoc-server/conf/sdoc_server_config.json

Set private_key to the value of SEAHUB__SEADOC_PRIVATE_KEY

/opt/seadoc-data/sdoc-server/conf/seadoc_converter_settings.py

Set SEADOC_PRIVATE_KEY to the value of SEAHUB__SEADOC_PRIVATE_KEY

.... which is not documented :)

@simonhammes
Copy link
Collaborator Author

simonhammes commented Aug 26, 2024

Never delete the host volume, otherwise sdoc-server can't initialize the database 🤷

ERROR 1050 (42S01) at line 1: Table 'operation_log' already exists

(found in /opt/seadoc-data/sdoc-server/logs/init.log)

EDIT: "Solution": jump into mysql shell and drop the operation_log table inside sdoc_db 🤷

- DB_NAME=sdoc_db
- TIME_ZONE=${TIME_ZONE}
- SDOC_SERVER_LETSENCRYPT=false
- SDOC_SERVER_HOSTNAME=https://${SEAFILE_SERVER_HOSTNAME}/sdoc-server
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Afaict SDOC_SERVER_HOSTNAME is only used when generating the NGINX configuration, which is irrelevant since the NGINX inside seafile-server directly communicates with the services inside this container (on port 7070, plus seahub <=> seadoc_convert on port 8888).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add sdoc server as yml file

2 participants