|
| 1 | +# |
| 2 | +# This config is based on https://github.com/cs3org/wopiserver/blob/master/wopiserver.conf |
| 3 | +# |
| 4 | +# wopiserver.conf |
| 5 | +# |
| 6 | +# Default configuration file for the WOPI server for oCIS |
| 7 | +# |
| 8 | +############################################################## |
| 9 | + |
| 10 | +[general] |
| 11 | +# Storage access layer to be loaded in order to operate this WOPI server |
| 12 | +# only "cs3" is supported with oCIS |
| 13 | +storagetype = cs3 |
| 14 | + |
| 15 | +# Port where to listen for WOPI requests |
| 16 | +port = 8880 |
| 17 | + |
| 18 | +# Logging level. Debug enables the Flask debug mode as well. |
| 19 | +# Valid values are: Debug, Info, Warning, Error. |
| 20 | +loglevel = Error |
| 21 | +loghandler = stream |
| 22 | +logdest = stdout |
| 23 | + |
| 24 | +# URL of your WOPI server or your HA proxy in front of it |
| 25 | +wopiurl = https://wopiserver.owncloud.test |
| 26 | + |
| 27 | +# URL for direct download of files. The complete URL that is sent |
| 28 | +# to clients will include the access_token argument |
| 29 | +downloadurl = https://wopiserver.owncloud.test/wopi/cbox/download |
| 30 | + |
| 31 | +# The internal server engine to use (defaults to flask). |
| 32 | +# Set to waitress for production installations. |
| 33 | +internalserver = waitress |
| 34 | + |
| 35 | +# List of file extensions deemed incompatible with LibreOffice: |
| 36 | +# interoperable locking will be disabled for such files |
| 37 | +nonofficetypes = .md .zmd .txt .epd |
| 38 | + |
| 39 | +# List of file extensions to be supported by Collabora (deprecated) |
| 40 | +codeofficetypes = .odt .ott .ods .ots .odp .otp .odg .otg .doc .dot .xls .xlt .xlm .ppt .pot .pps .vsd .dxf .wmf .cdr .pages .number .key |
| 41 | + |
| 42 | +# WOPI access token expiration time [seconds] |
| 43 | +tokenvalidity = 86400 |
| 44 | + |
| 45 | +# WOPI lock expiration time [seconds] |
| 46 | +wopilockexpiration = 3600 |
| 47 | + |
| 48 | +# WOPI lock strict check: if True, WOPI locks will be compared according to specs, |
| 49 | +# that is their representation must match. False (default) allows for a more relaxed |
| 50 | +# comparison, which compensates incorrect lock requests from Microsoft Office Online |
| 51 | +# on-premise setups. |
| 52 | +wopilockstrictcheck = False |
| 53 | + |
| 54 | +# Enable support of rename operations from WOPI apps. This is currently |
| 55 | +# disabled by default as it has been observed that both MS Office and Collabora |
| 56 | +# Online do not play well with this feature. |
| 57 | +# Not supported with oCIS, must always be set to "False" |
| 58 | +enablerename = False |
| 59 | + |
| 60 | +# Detection of external Microsoft Office or LibreOffice locks. By default, lock files |
| 61 | +# compatible with Office for Desktop applications are detected, assuming that the |
| 62 | +# underlying storage can be mounted as a remote filesystem: in this case, WOPI GetLock |
| 63 | +# and SetLock operations return such locks and prevent online apps from entering edit mode. |
| 64 | +# This feature can be disabled in order to operate a pure WOPI server for online apps. |
| 65 | +# Not supported with oCIS, must always be set to "False" |
| 66 | +detectexternallocks = False |
| 67 | + |
| 68 | +# Location of the webconflict files. By default, such files are stored in the same path |
| 69 | +# as the original file. If that fails (e.g. because of missing permissions), |
| 70 | +# an attempt is made to store such files in this path if specified, otherwise |
| 71 | +# the system falls back to the recovery space (cf. io|recoverypath). |
| 72 | +# The keywords <user_initial> and <username> are replaced with the actual username's |
| 73 | +# initial letter and the actual username, respectively, so you can use e.g. |
| 74 | +# /your_storage/home/user_initial/username |
| 75 | +#conflictpath = / |
| 76 | + |
| 77 | +# ownCloud's WOPI proxy configuration. Disabled by default. |
| 78 | +#wopiproxy = https://external-wopi-proxy.com |
| 79 | +#wopiproxysecretfile = /path/to/your/shared-key-file |
| 80 | +#proxiedappname = Name of your proxied app |
| 81 | + |
| 82 | +[security] |
| 83 | +# Location of the secret files. Requires a restart of the |
| 84 | +# WOPI server when either the files or their content change. |
| 85 | +wopisecretfile = /etc/wopi/wopisecret |
| 86 | +# iop secret is not used for cs3 storage type |
| 87 | +#iopsecretfile = /etc/wopi/iopsecret |
| 88 | + |
| 89 | +# Use https as opposed to http (requires certificate) |
| 90 | +usehttps = no |
| 91 | + |
| 92 | +# Certificate and key for https. Requires a restart |
| 93 | +# to apply a change. |
| 94 | +wopicert = /etc/grid-security/host.crt |
| 95 | +wopikey = /etc/grid-security/host.key |
| 96 | + |
| 97 | +[bridge] |
| 98 | +# SSL certificate check for the connected apps |
| 99 | +sslverify = True |
| 100 | + |
| 101 | +# Minimal time interval between two consecutive save operations [seconds] |
| 102 | +#saveinterval = 200 |
| 103 | + |
| 104 | +# Minimal time interval before a closed file is WOPI-unlocked [seconds] |
| 105 | +#unlockinterval = 90 |
| 106 | + |
| 107 | +# CodiMD: disable creating zipped bundles when files contain pictures |
| 108 | +#disablezip = False |
| 109 | + |
| 110 | +[io] |
| 111 | +# Size used for buffered reads [bytes] |
| 112 | +chunksize = 4194304 |
| 113 | + |
| 114 | +# Path to a recovery space in case of I/O errors when reaching to the remote storage. |
| 115 | +# This is expected to be a local path, and it is provided in order to ease user support. |
| 116 | +# Defaults to the indicated spool folder. |
| 117 | +recoverypath = /var/spool/wopirecovery |
| 118 | + |
| 119 | +[cs3] |
| 120 | +# Host and port of the Reva(-like) CS3-compliant GRPC gateway endpoint |
| 121 | +revagateway = ocis:9142 |
| 122 | + |
| 123 | +# Reva/gRPC authentication token expiration time [seconds] |
| 124 | +# The default value matches Reva's default |
| 125 | +authtokenvalidity = 3600 |
| 126 | + |
| 127 | +# SSL certificate check for Reva |
| 128 | +sslverify = True |
0 commit comments