Kleine Änderungen

This commit is contained in:
2018-03-17 18:31:46 +01:00
parent aaee367a16
commit 63dd534402
2 changed files with 9 additions and 8 deletions

View File

@ -17,7 +17,6 @@ sudo /etc/init.d/mysql restart
```xml ```xml
mysql -p -u root mysql -p -u root
use ***db***;
GRANT ALL ON *.* TO root@'%' IDENTIFIED BY 'RootPassword'; GRANT ALL ON *.* TO root@'%' IDENTIFIED BY 'RootPassword';
exit exit
``` ```

View File

@ -19,7 +19,7 @@ Siehe [Öffentliche Schlüssel von alten Paketen (Backports) importieren](https:
**Certbot installieren** **Certbot installieren**
```xml ```xml
sudo apt install certbot -t jessie-backports -y sudo apt install -t jessie-backports certbot -y
``` ```
**nginx beenden** **nginx beenden**
@ -51,10 +51,9 @@ sudo nano /etc/nginx/sites-available/default
```xml ```xml
server { server {
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/domain.xx/fullchain.pem; ssl_certificate /etc/letsencrypt/live/domain.xx/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain.xx/privkey.pem; ssl_certificate_key /etc/letsencrypt/live/domain.xx/privkey.pem;
} }
``` ```
@ -62,8 +61,11 @@ server {
*Zertifikate laufen alle 90 Tage ab* *Zertifikate laufen alle 90 Tage ab*
```xml ```xml
sudo -s sudo crontab -e
/etc/init.d/nginx stop ```
certbot certonly -d DOMAINNAME
/etc/init.d/nginx start -> Dort einfügen:
```xml
0 5 */20 * * certbot renew --quiet --pre-hook "/etc/init.d/nginx stop" --post-hook "/etc/init.d/nginx start"
``` ```