Update README.

This commit is contained in:
Shuai Lin 2016-11-25 16:18:46 +08:00
parent 10b045f50b
commit 569c24cea5

View file

@ -76,14 +76,25 @@ If the environment variable "SUPERVISED" is set to true, the container won't be
### Container Configuration ### Container Configuration
The beginning of the container definition can contain the following "special" sections:
#### port mapping: #### port mapping:
```conf ```conf
server.port_mappings = 80:80,443:443 server.port_mappings = 80:80,443:443
``` ```
#### Let's encrypt SSL certificate
If you set `server.letsencrypt` to `true`, the bootstrap script would request a letsencrypt-signed SSL certificate for you.
```conf
server.letsencrypt = true
server.port_mappings = 80:80,443:443
```
If you want to use your own SSL certificate:
- create a folder 'shared/ssl', and put your certificate and private key under the ssl directory.
- Your certificate must have the name "seafile.example.com.crt", and the private key must have the name "seafile.example.com.key".
### Troubleshooting ### Troubleshooting
View the container logs: `./launcher logs` View the container logs: `./launcher logs`