Update README.md, document ORIGINS in service environment

This commit is contained in:
Nicolas Guillot 2024-01-29 21:54:10 +01:00 committed by GitHub
parent d3ef37ad10
commit 91bbb389ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,6 +97,14 @@ If you have your own server, use [docker-compose-joplin-only.yml](https://github
CERT_DOMAIN: your_domain.com
CERT_MAIL: you@zaclys.net
```
* **⚠** If you prefer writing the ORIGINS directly in django-joplin-vieweb service environment, do it as follow:
```yaml
services:
django-joplin-vieweb:
environment:
- ORIGINS='https://your_domain.com', 'https://12.34.56.78'
```
Note there is no surrounding double quotes (")
* If you use nginx and certbot containers:
* CERT_DOMAIN: your domain so let's encrypt can contact (IP address doesn't work: you need a domain)
* CERT_MAIL: a mail needed by let's encrypt.