Update README.md

pull/4/head
Tai 3 years ago committed by GitHub
parent 1d49641215
commit 8f814536ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -84,10 +84,10 @@ You may need to add the following lines to your docker file if you plan on enabl
After that you do this open this port on your firewall and redirect it to the Docker Host's IP with seafile running on it.
### docker-compose up -d
After you have the .env and docker-compose files set up in this directory. Do a ```docker-compose up -d``` to start the containers. After they start modify seahub_settings.py and ccnet.conf as shown below.
After you have the .env and docker-compose files set up in this directory. Do a ```docker-compose up -d``` to start the containers. After they start modify seahub_settings.py, ccnet.conf, and maybe gunicorn.conf.py (if you have connnection refused issues) as shown below.
### seahub_settings.py
nano /home/~/docker/seafile/seafile-data/seafile/conf/seahub_settings.py
sudo nano ~/docker/seafile/seafile-data/seafile/conf/seahub_settings.py
Change FILE_SERVER_ROOT to be https instead of http.
Example Below:
@ -96,15 +96,22 @@ FILE_SERVER_ROOT = "https://subdomain.example.com/seafhttp"
```
### ccnet.conf
nano /home/~/docker/seafile/seafile-data/seafile/conf/ccnet.conf
sudo nano ~/docker/seafile/seafile-data/seafile/conf/ccnet.conf
Change SERVICE_URL from http to https and remove the :8000 at the end.
Example Below:
```
SERVICE_URL https://subdomain.example.com
```
# Optional: Changing upload file size limit
### gunicorn.conf.py
sudo nano ~/docker/seafile/seafile-data/seafile/conf/gunicorn.conf.py
According to @DemoniWaari [#3](https://github.com/StarWhiz/docker_deployment_notes/issues/3) you may need to change the default `bind = "127.0.0.1:8000"` to `bind = "0.0.0.0:8000"` if you get a connection refused error.
### Optional: seafile.conf - changing upload file size limit
You can change your upload size limits by editing seafile.conf...
sudo nano ~/docker/seafile/seafile-data/seafile/conf/seafile.conf
@ -120,7 +127,7 @@ Here I assigned a new subdomain webdav and point it to port 8080 which is the de
### seafdav.conf
```
nano /home/~/docker/seafile/seafile-data/seafile/conf/seafdav.conf
nano ~/docker/seafile/seafile-data/seafile/conf/seafdav.conf
```
Set ```enabled=true```
Set ```share_name = /```

Loading…
Cancel
Save