Update README.md

This commit is contained in:
sigaloid 2021-02-26 16:24:58 +00:00 committed by GitHub
parent fc77ef373d
commit 80fdf4bcc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -177,9 +177,11 @@ Add `--restart unless-stopped` if you want this docker to start on boot, unless
<details> <details>
<summary>Apache config</summary> <summary>Apache config</summary>
<br> <br>
Replace [YOUR_DOMAIN] with your full domain; for example, `translate.domain.tld` or `libretranslate.domain.tld`. Replace [YOUR_DOMAIN] with your full domain; for example, `translate.domain.tld` or `libretranslate.domain.tld`.
Remove `#` on the ErrorLog and CustomLog lines to log requests. Remove `#` on the ErrorLog and CustomLog lines to log requests.
```ApacheConf ```ApacheConf
#Libretranslate #Libretranslate
@ -207,10 +209,10 @@ Remove `#` on the ErrorLog and CustomLog lines to log requests.
# CustomLog ${APACHE_LOG_DIR}/tr-access.log combined # CustomLog ${APACHE_LOG_DIR}/tr-access.log combined
</VirtualHost> </VirtualHost>
``` ```
To get a HTTPS subdomain certificate, install `certbot` (snap), run `sudo certbot certonly --manual --preferred-challenges dns` and enter your information (with `subdomain.domain.tld` as the domain). Add a DNS TXT record with your domain registrar when asked. This will save your certificate and key to `/etc/letsencrypt/live/{subdomain.domain.tld}/`. Alternatively, comment the SSL lines out if you don't want to use HTTPS.
Add this to an existing site config, or a new file in `/etc/apache2/sites-available/new-site.conf` and run `sudo a2ensite new-site.conf`. Add this to an existing site config, or a new file in `/etc/apache2/sites-available/new-site.conf` and run `sudo a2ensite new-site.conf`.
To get a HTTPS subdomain certificate, install `certbot` (snap), run `sudo certbot certonly --manual --preferred-challenges dns` and enter your information (with `subdomain.domain.tld` as the domain). Add a DNS TXT record with your domain registrar when asked. This will save your certificate and key to `/etc/letsencrypt/live/{subdomain.domain.tld}/`. Alternatively, comment the SSL lines out if you don't want to use HTTPS.
</details> </details>
## Credits ## Credits