feat(podman_seafile): initial import
Some checks failed
Ansible Lint Check / lint (push) Failing after 47s
Some checks failed
Ansible Lint Check / lint (push) Failing after 47s
This commit is contained in:
parent
7a66272ae3
commit
7891343dc5
14 changed files with 411 additions and 0 deletions
|
|
@ -0,0 +1,32 @@
|
|||
SEAFILE_SERVER_HOSTNAME = "{{ podman_seafile_hostname }}"
|
||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||
CSRF_TRUSTED_ORIGINS = ["https://{{ podman_seafile_hostname }}"]
|
||||
FORCE_HTTPS_IN_CONF = True
|
||||
USE_X_FORWARDED_HOST = True
|
||||
|
||||
ENABLE_OAUTH = True
|
||||
|
||||
OAUTH_CREATE_UNKNOWN_USER = True
|
||||
OAUTH_ACTIVATE_USER_AFTER_CREATION = True
|
||||
|
||||
OAUTH_CLIENT_ID = "{{ podman_seafile_keycloak_client_id }}"
|
||||
OAUTH_CLIENT_SECRET = "{{ podman_seafile_keycloak_client_secret }}"
|
||||
OAUTH_REDIRECT_URL = "https://{{ podman_seafile_hostname }}/oauth/callback/"
|
||||
|
||||
OAUTH_PROVIDER_DOMAIN = '{{ podman_seafile_hostname }}'
|
||||
OAUTH_AUTHORIZATION_URL = 'https://{{ podman_seafile_keycloak_hostname }}/realms/{{ podman_seafile_keycloak_realm }}/protocol/openid-connect/auth'
|
||||
OAUTH_TOKEN_URL = 'https://{{ podman_seafile_keycloak_hostname }}/realms/{{ podman_seafile_keycloak_realm }}/protocol/openid-connect/token'
|
||||
OAUTH_USER_INFO_URL = 'https://{{ podman_seafile_keycloak_hostname }}/realms/{{ podman_seafile_keycloak_realm }}/protocol/openid-connect/userinfo'
|
||||
OAUTH_SCOPE = ["openid", "profile", "email"]
|
||||
OAUTH_ATTRIBUTE_MAP = {
|
||||
"sub": (True, "uid"),
|
||||
"email": (False, "contact_email"),
|
||||
"name": (False, "name")
|
||||
}
|
||||
|
||||
ENABLE_ONLYOFFICE = True
|
||||
ONLYOFFICE_APIJS_URL = 'https://{{ podman_seafile_hostname }}/onlyofficeds/web-apps/apps/api/documents/api.js'
|
||||
ONLYOFFICE_JWT_SECRET = '{{ podman_seafile_jwt_private_key }}'
|
||||
ONLYOFFICE_FILE_EXTENSION = ('doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'odt', 'fodt', 'odp', 'fodp', 'ods', 'fods', 'ppsx', 'pps', 'csv')
|
||||
ONLYOFFICE_EDIT_FILE_EXTENSION = ('docx', 'pptx', 'xlsx', 'csv')
|
||||
OFFICE_PREVIEW_MAX_SIZE = 30 * 1024 * 1024 # preview size, 30 MB
|
||||
Loading…
Add table
Add a link
Reference in a new issue