Browse Source

comments in both readme and ini file + repair travis

Guénaël Muller 5 years ago
parent
commit
86339fc503
3 changed files with 22 additions and 0 deletions
  1. 5 0
      .travis.yml
  2. 6 0
      README.md
  3. 11 0
      development.ini.sample

+ 5 - 0
.travis.yml View File

@@ -5,6 +5,11 @@ python:
5 5
   - "3.5"
6 6
   - "3.6"
7 7
 
8
+addons:
9
+  apt:
10
+    packages:
11
+    - libreoffice
12
+
8 13
 services:
9 14
   - docker
10 15
   - redis-server

+ 6 - 0
README.md View File

@@ -20,6 +20,12 @@ on Debian Stretch (9) with sudo:
20 20
     sudo apt install git
21 21
     sudo apt install python3 python3-venv python3-dev python3-pip
22 22
     sudo apt install redis-server
23
+    sudo apt install zlib1g-dev libjpeg-dev
24
+
25
+for better preview support:
26
+
27
+    sudo apt install libreoffice # most office documents file and text format
28
+    sudo apt install inkscape # for .svg files.
23 29
 
24 30
 ### Get the source ###
25 31
 

+ 11 - 0
development.ini.sample View File

@@ -175,6 +175,17 @@ wsgidav.config_path = %(here)s/wsgidav.conf
175 175
 ## Do not set http:// prefix.
176 176
 # wsgidav.client.base_url = 127.0.0.1:<WSGIDAV_PORT>
177 177
 
178
+### Preview
179
+## You can parametrized allowed jpg preview dimension list, if not set, default
180
+## is 256x256. First {width}x{length} items is default preview dimensions.
181
+## all items should be separated by ',' and you should be really careful to do
182
+## set anything else than '{int}x{int}' item and ', ' separator
183
+# preview.jpg.allowed_dims = 256x256,1000x1000
184
+## Preview dimensions can be set as restricted, if set as restricted, access
185
+## endpoint to  to get any other preview dimensions than allowed_dims will
186
+## return error
187
+# preview.jpg.restricted_dims = True
188
+
178 189
 ###
179 190
 # wsgi server configuration
180 191
 ###