Clean document on enabling https with Nginx and Apache

This commit is contained in:
Daniel Pan 2024-03-20 22:35:38 +08:00
parent a9a3952e0f
commit aab78fea35
3 changed files with 18 additions and 25 deletions

View File

@ -144,25 +144,23 @@ Finally, make sure the virtual host file does not contain syntax errors and rest
sudo service apache2 restart
```
### Modifying ccnet.conf
The `SERVICE_URL` in [ccnet.conf](../../config/ccnet-conf.md) informs Seafile about the chosen domain, protocol and port. Change the `SERVICE_URL`so as to account for the switch from HTTP to HTTPS and to correspond to your host name (the `http://`must not be removed):
```ini
SERVICE_URL = https://seafile.example.com
```
Note: The`SERVICE_URL` can also be modified in Seahub via System Admininstration > Settings. If `SERVICE_URL` is configured via System Admin and in ccnet.conf, the value in System Admin will take precedence.
### Modifying seahub_settings.py
The `FILE_SERVER_ROOT` in [seahub_settings.py](../../config/seahub_settings_py) informs Seafile about the location of and the protocol used by the file server. Change the `FILE_SERVER_ROOT`so as to account for the switch from HTTP to HTTPS and to correspond to your host name (the trailing `/seafhttp` must not be removed):
The `SERVICE_URL` in [seahub_settings.py](../config/seahub_settings_py/) informs Seafile about the chosen domain, protocol and port. Change the `SERVICE_URL`so as to account for the switch from HTTP to HTTPS and to correspond to your host name (the `http://`must not be removed):
```python
SERVICE_URL = 'https://seafile.example.com'
```
The `FILE_SERVER_ROOT` in [seahub_settings.py](../config/seahub_settings_py/) informs Seafile about the location of and the protocol used by the file server. Change the `FILE_SERVER_ROOT`so as to account for the switch from HTTP to HTTPS and to correspond to your host name (the trailing `/seafhttp` must not be removed):
```python
FILE_SERVER_ROOT = 'https://seafile.example.com/seafhttp'
```
Note: The`FILE_SERVER_ROOT` can also be modified in Seahub via System Admininstration > Settings. If `FILE_SERVER_ROOT` is configured via System Admin and in seahub_settings.py, the value in System Admin will take precedence.
Note: The `SERVICE_URL` and `FILE_SERVER_ROOT` can also be modified in Seahub via System Admininstration > Settings. If they are configured via System Admin and in seahub_settings.py, the value in System Admin will take precedence.
### Modifying seafile.conf (optional)

View File

@ -243,25 +243,23 @@ If you have WebDAV enabled it is recommended to add the same:
}
```
### Modifying ccnet.conf
The `SERVICE_URL` in [ccnet.conf](../config/ccnet-conf.md) informs Seafile about the chosen domain, protocol and port. Change the `SERVICE_URL`so as to account for the switch from HTTP to HTTPS and to correspond to your host name (the `http://`must not be removed):
```ini
SERVICE_URL = https://seafile.example.com
```
Note: The`SERVICE_URL` can also be modified in Seahub via System Admininstration > Settings. If `SERVICE_URL` is configured via System Admin and in ccnet.conf, the value in System Admin will take precedence.
### Modifying seahub_settings.py
The `SERVICE_URL` in [seahub_settings.py](../config/seahub_settings_py/) informs Seafile about the chosen domain, protocol and port. Change the `SERVICE_URL`so as to account for the switch from HTTP to HTTPS and to correspond to your host name (the `http://`must not be removed):
```python
SERVICE_URL = 'https://seafile.example.com'
```
The `FILE_SERVER_ROOT` in [seahub_settings.py](../config/seahub_settings_py/) informs Seafile about the location of and the protocol used by the file server. Change the `FILE_SERVER_ROOT`so as to account for the switch from HTTP to HTTPS and to correspond to your host name (the trailing `/seafhttp` must not be removed):
```python
FILE_SERVER_ROOT = 'https://seafile.example.com/seafhttp'
```
Note: The`FILE_SERVER_ROOT` can also be modified in Seahub via System Admininstration > Settings. If `FILE_SERVER_ROOT` is configured via System Admin and in seahub_settings.py, the value in System Admin will take precedence.
Note: The `SERVICE_URL` and `FILE_SERVER_ROOT` can also be modified in Seahub via System Admininstration > Settings. If they are configured via System Admin and in seahub_settings.py, the value in System Admin will take precedence.
### Modifying seafile.conf (optional)

View File

@ -412,7 +412,4 @@ This manual provides instructions for enabling HTTPS for the two most popular we
* [Apache](https://manual.seafile.com/deploy/https_with_apache/)
## Performance tuning
If you have more than 50 users, we highly recommand you to [add memcached](../deploy/add_memcached.md). This is going to greatly speed up Seahub (the web frontend).