Update readme.md
parent
31e01a80f1
commit
650d7dd552
10
readme.md
10
readme.md
|
|
@ -18,6 +18,16 @@ tot acolo copiez si continutul lui nginx-for-docker config in /data/nginx/app.co
|
||||||
Cu comanda urmatoare aduc fisierul de initializare prima data: (il editez local sa schimb domeniul example)
|
Cu comanda urmatoare aduc fisierul de initializare prima data: (il editez local sa schimb domeniul example)
|
||||||
curl -L https://repos.bogdancarpean.com/micutu/Linux_ubuntu_scripts/raw/branch/main/install.sh > init-letsencrypt.sh
|
curl -L https://repos.bogdancarpean.com/micutu/Linux_ubuntu_scripts/raw/branch/main/install.sh > init-letsencrypt.sh
|
||||||
|
|
||||||
|
cand rulez scriptul sterg location / {
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
si pun in loc
|
||||||
|
|
||||||
|
location /.well-known/acme-challenge/ {
|
||||||
|
root /var/www/certbot;
|
||||||
|
}
|
||||||
|
|
||||||
chmod +x init-letsencrypt.sh
|
chmod +x init-letsencrypt.sh
|
||||||
|
|
||||||
sudo ./init-letsencrypt.sh
|
sudo ./init-letsencrypt.sh
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue