Added 30 .base.md files using the mmg (Multilingual Markdown Generator) format to automatically generate English (.md) and French (.fr.md) versions of all project documentation. Updated conf/make.documentation.Makefile to process all .base.md files via `make doc_markdown`.
39 lines
No EOL
941 B
Markdown
39 lines
No EOL
941 B
Markdown
|
|
# Deployment from Odoo
|
|
|
|
## Support Wildcard
|
|
|
|
You can support Wildcard domain, like *.mysite.com
|
|
|
|
Generate manually the certificate :
|
|
|
|
```bash
|
|
sudo certbot certonly --manual --preferred-challenges=dns --server https://acme-v02.api.letsencrypt.org/directory -d "*.mysite.com" -d "*.mysecondsite.com"
|
|
```
|
|
|
|
Follow instruction. Manually update it each 90 days.
|
|
|
|
## Single domain per website
|
|
|
|
This solution will create nginx file and run certbot.
|
|
|
|
Because Odoo hasn't root password, you can exempt with command
|
|
|
|
```bash
|
|
visudo
|
|
```
|
|
|
|
Add this content
|
|
|
|
```text
|
|
odoo ALL=(root) NOPASSWD: /usr/sbin/nginx -t
|
|
odoo ALL=(root) NOPASSWD: /usr/bin/systemctl reload nginx
|
|
odoo ALL=(root) NOPASSWD: /bin/ln -s * /etc/nginx/sites-enabled/*
|
|
odoo ALL=(root) NOPASSWD: /home/odoo/erplibre/script/nginx/deploy_nginx_and_certbot.py
|
|
```
|
|
|
|
Run script
|
|
|
|
```bash
|
|
sudo ./script/nginx/deploy_nginx_and_certbot.py --generate_nginx --run_certbot --domain DOMAINS;DOMAINS
|
|
``` |