Commit 97a8fb55 authored by anderson's avatar anderson

Update Dockerfile-pro, conf/nginx files

parent e7d251cc
......@@ -9,7 +9,7 @@ ENV SEAFILE_DOWNLOAD=https://download.seafile.com/d/6e5297246c/files \
RUN apt-get update; apt-get install -y \
python2.7 python-memcache python-setuptools python-ldap python-mysqldb python-memcache python-urllib3 python-requests \
sqlite3 libpython2.7 mysql-client poppler-utils iputils-ping curl apt-transport-https ca-certificates tzdata nano wget locales \
wget libnss3 ffmpeg dirmngr gnupg gosu crudini libmemcached-dev libssl-dev libxml2-dev davfs2 dumb-init; \
wget libnss3 ffmpeg dirmngr gnupg gosu crudini libmemcached-dev libssl-dev libxml2-dev davfs2 dumb-init cron procps; \
easy_install pip
RUN pip install boto requests pillow 'moviepy<1.0.0' pylibmc django-pylibmc
......
......@@ -14,6 +14,10 @@ map $http_upgrade $proxy_connection {
"" close;
}
set_real_ip_from 10.42.0.0/16;
real_ip_header X-Real-IP;
real_ip_recursive on;
server {
listen 80;
server_name $SEAFILE_ADDRESS;
......@@ -72,7 +76,7 @@ server {
send_timeout 36000s;
# This option is only available for Nginx >= 1.8.0. See more details below.
#proxy_request_buffering off;
proxy_request_buffering on;
}
location /onlyofficeds/ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment