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
mysql -p -u root
use ***db***;
GRANT ALL ON *.* TO root@'%' IDENTIFIED BY 'RootPassword';
exit
```

View File

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