u
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# seafile 7/8 requires python3
|
||||
sudo apt-get update
|
||||
sudo apt-get install python3 python3-setuptools python3-pip python3-ldap sqlite3 -y
|
||||
sudo pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy==1.3.8 psd-tools django-pylibmc django-simple-captcha
|
||||
sudo pip3 install --timeout=3600 django==2.2.* future Pillow pylibmc captcha jinja2 sqlalchemy==1.4.3 psd-tools django-pylibmc django-simple-captcha
|
||||
|
||||
pushd /faronear
|
||||
sudo mkdir bin.seafile
|
||||
@@ -19,7 +19,12 @@ sudo ./seafile.sh start
|
||||
|
||||
# changed "127.0.0.1:8000" to "0.0.0.0:8000", otherwise it can only be accessed on the localhost, unless using nginx/apache to proxy
|
||||
sudo sed -i "s/127\.0\.0\.1/0.0.0.0/g" ../conf/gunicorn.conf.py
|
||||
# to change seahub port, to edit gunicorn.conf.py, it works although it still promts "Starting seahub at port 8000 ...". (Directly `./seahub.sh start <PORT>` prompts "Starting seahub at port <PORT> ..." but it actually doesn't listen on <PORT>.)
|
||||
# to change seahub port, to edit gunicorn.conf.py, it works although it still promts "Starting seahub at port 8000 ...".
|
||||
# (Directly `./seahub.sh start <PORT>` prompts "Starting seahub at port <PORT> ..." but it actually doesn't listen on <PORT>.)
|
||||
sudo ./seahub.sh start
|
||||
|
||||
popd
|
||||
|
||||
sudo apt install nginx -y
|
||||
rm /etc/nginx/sites-enabled/default
|
||||
ln -s /faronear/fon/sysconfig/nginx-seafile-https.conf /etc/nginx/sites-enabled/seafile.conf
|
||||
Reference in New Issue
Block a user