2018-11-30 11:39:42 +01:00
|
|
|
# Installation sur Debian 8
|
2018-06-29 15:22:33 +02:00
|
|
|
|
|
|
|
Thumbor n'est disponible que sur sid. Certaines dépendances ne sont disponible que via les backports.
|
|
|
|
|
|
|
|
~~~
|
|
|
|
Paquet | Version | Jessie | Jessie BP |
|
|
|
|
--------------------------+---------+--------+-----------+
|
|
|
|
libc6 | 2.14 | | |
|
|
|
|
python | 2.7 | | |
|
|
|
|
python-argparse | | | |
|
|
|
|
python-cairosvg | | | |
|
|
|
|
python-concurrent.futures | | | |
|
|
|
|
python-crypto | 2.1.0 | 2.6.1 | |
|
|
|
|
python-derpconf | 0.2.0 | | 0.8.0 |
|
|
|
|
python-imaging | | | |
|
|
|
|
python-libthumbor | | | |
|
|
|
|
python-pexif | 0.15 | | 0.15.1 |
|
|
|
|
python-pil | 3.0.0 | 2.6.1 | 3.4.2 |
|
|
|
|
python-pycurl | | | |
|
|
|
|
python-schedule | | | |
|
|
|
|
python-statsd | 3.0.1 | | 3.2.1 |
|
|
|
|
python-tornado | 4.1.0 | 3.2.2 | 4.4.3 |
|
|
|
|
python-tz | | | |
|
|
|
|
python-webcolors | | | |
|
2018-06-29 18:37:41 +02:00
|
|
|
~~~
|
|
|
|
|
|
|
|
La procédure suivante fonctionne, a priori :
|
|
|
|
|
|
|
|
~~~
|
2018-07-02 18:02:45 +02:00
|
|
|
# echo 'deb http://mirror.evolix.org/debian jessie-backports main' >>/etc/apt/sources.list
|
|
|
|
# cat >/etc/apt/preferences.d/backports <<eof
|
|
|
|
Package: *
|
|
|
|
Pin: release n=jessie-backports
|
|
|
|
Pin-Priority: 50
|
|
|
|
|
|
|
|
Package: python-backports-abc python-pil python-tornado python-derpconf python-pexif python-schedule python-statsd
|
|
|
|
Pin: release n=jessie-backports
|
|
|
|
Pin-Priority: 999
|
|
|
|
eof
|
|
|
|
# apt update
|
|
|
|
# apt install \
|
2018-06-29 18:37:41 +02:00
|
|
|
libc6 \
|
|
|
|
python \
|
|
|
|
libpython2.7-stdlib \
|
|
|
|
python-cairosvg \
|
|
|
|
python-concurrent.futures \
|
|
|
|
python-imaging \
|
|
|
|
python-pycurl \
|
|
|
|
python-tz \
|
|
|
|
python-webcolors \
|
|
|
|
python-six \
|
|
|
|
python-pkg-resources \
|
|
|
|
python-singledispatch \
|
2018-07-02 18:02:45 +02:00
|
|
|
python-backports-abc \
|
|
|
|
python-pil \
|
|
|
|
python-tornado \
|
|
|
|
python-derpconf \
|
|
|
|
python-pexif \
|
|
|
|
python-schedule \
|
|
|
|
python-statsd \
|
2018-06-29 18:37:41 +02:00
|
|
|
python-opencv
|
2018-07-02 18:02:45 +02:00
|
|
|
# wget \
|
|
|
|
http://ftp.fr.debian.org/debian/pool/main/libt/libthumbor/python-libthumbor_1.3.2-1_all.deb \
|
2018-06-29 18:37:41 +02:00
|
|
|
http://ftp.fr.debian.org/debian/pool/main/t/thumbor/thumbor_6.3.2-4_amd64.deb
|
2018-07-02 18:02:45 +02:00
|
|
|
# dpkg -i \
|
|
|
|
python-libthumbor_1.3.2-1_all.deb \
|
2018-06-29 18:37:41 +02:00
|
|
|
thumbor_6.3.2-4_amd64.deb
|
2018-07-02 18:05:49 +02:00
|
|
|
~~~
|
|
|
|
|
|
|
|
Thumbor utilise le port 8888 par défaut. Pour le modifier :
|
|
|
|
|
|
|
|
~~~
|
|
|
|
# cat /lib/systemd/system/thumbor.service
|
|
|
|
# systemctl daemon-reload
|
|
|
|
# systemctl start thumbor
|
2018-07-19 15:51:34 +02:00
|
|
|
~~~
|
|
|
|
|
|
|
|
|
2018-07-27 11:36:53 +02:00
|
|
|
# Configuration
|
|
|
|
|
|
|
|
|
|
|
|
## Configuration Apache
|
2018-07-19 15:51:34 +02:00
|
|
|
|
|
|
|
Fonctionne pour les URL *unsafe*, ici sur le port 8890 :
|
|
|
|
|
|
|
|
~~~
|
|
|
|
ProxyPreserveHost On
|
|
|
|
ProxyPass /unsafe http://127.0.0.1:8890/unsafe
|
|
|
|
ProxyPassReverse /unsafe http://127.0.0.1:8890/unsafe
|
|
|
|
<Proxy *>
|
2021-03-08 18:11:05 +01:00
|
|
|
Require all granted
|
2018-07-19 15:51:34 +02:00
|
|
|
</Proxy>
|
2018-07-27 11:36:53 +02:00
|
|
|
~~~
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
On peut générer un fichier de conf comme ceci :
|
|
|
|
|
|
|
|
~~~
|
|
|
|
thumbor-config >/etc/thumbor.d/thumbor.conf
|
|
|
|
~~~
|
|
|
|
|
2021-03-08 18:11:05 +01:00
|
|
|
Il s'agit d'un script Python entièrement commenté.
|