|
|
|
@ -9,21 +9,31 @@ |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
# Caddyfile |
|
|
|
# Caddyfile |
|
|
|
|
|
|
|
``` |
|
|
|
subdomain.example.com { |
|
|
|
subdomain.example.com { |
|
|
|
reverse_proxy seafile:80 |
|
|
|
reverse_proxy seafile:80 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Things to Modify |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## .env |
|
|
|
|
|
|
|
set your environment variables |
|
|
|
|
|
|
|
|
|
|
|
# Other things to do |
|
|
|
|
|
|
|
## seahub_settings.py |
|
|
|
## seahub_settings.py |
|
|
|
nano /home/~/docker/seafile/seafile-data/seafile/conf/seahub_settings.py |
|
|
|
nano /home/~/docker/seafile/seafile-data/seafile/conf/seahub_settings.py |
|
|
|
|
|
|
|
|
|
|
|
Change FILE_SERVER_ROOT to be https instead of http. |
|
|
|
Change FILE_SERVER_ROOT to be https instead of http. |
|
|
|
Example Below: |
|
|
|
Example Below: |
|
|
|
```FILE_SERVER_ROOT = "https://subdomain.example.com/seafhttp"``` |
|
|
|
``` |
|
|
|
|
|
|
|
FILE_SERVER_ROOT = "https://subdomain.example.com/seafhttp" |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
## ccnet.conf |
|
|
|
## ccnet.conf |
|
|
|
nano /home/~/docker/seafile/seafile-data/seafile/conf/ccnet.conf |
|
|
|
nano /home/~/docker/seafile/seafile-data/seafile/conf/ccnet.conf |
|
|
|
|
|
|
|
|
|
|
|
Change SERVICE_URL from http to https and remove the :8000 at the end. |
|
|
|
Change SERVICE_URL from http to https and remove the :8000 at the end. |
|
|
|
Example Below: |
|
|
|
Example Below: |
|
|
|
```SERVICE_URL https://subdomain.example.com``` |
|
|
|
``` |
|
|
|
|
|
|
|
SERVICE_URL https://subdomain.example.com |
|
|
|
|
|
|
|
``` |