maj readme
This commit is contained in:
parent
71506a71f7
commit
e5f43e6051
28
README.md
28
README.md
@ -5,7 +5,33 @@ La configuration pour le NGINX reverse proxy en front se trouve dans le dossir n
|
|||||||
|
|
||||||
## CONFIG
|
## CONFIG
|
||||||
|
|
||||||
/\ Attention, le nom de domaine est à configuré dans les deux fichier de NGINX !
|
```bash
|
||||||
|
nano nginx-proxy/nginx.conf
|
||||||
|
```
|
||||||
|
|
||||||
|
/\ Attention, le nom de domaine est à configuré dans le proxy NGINX !
|
||||||
|
|
||||||
|
### Pour le HTTPS:
|
||||||
|
|
||||||
|
Via Certbot:
|
||||||
|
```bash
|
||||||
|
sudo apt install certbot -y
|
||||||
|
sudo certbot certonly -d example.com
|
||||||
|
```
|
||||||
|
|
||||||
|
Une fois le certificat obtenu, décommenter les 3 lignes concernant le SSL en vérifiant
|
||||||
|
le nom des certificats en fonction du nom de domaine:
|
||||||
|
```
|
||||||
|
#ssl on;
|
||||||
|
#ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
|
||||||
|
#ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
|
||||||
|
```
|
||||||
|
|
||||||
|
Redémarrer NGINX:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo systemctl restart nginx
|
||||||
|
```
|
||||||
|
|
||||||
## BUILD
|
## BUILD
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# HTTP
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
@ -11,6 +12,7 @@ server {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# HTTPS
|
||||||
server{
|
server{
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
@ -33,9 +35,9 @@ server{
|
|||||||
return 302 https://example.com/index.xml;
|
return 302 https://example.com/index.xml;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssl on;
|
#ssl on;
|
||||||
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
|
#ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
|
#ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
|
||||||
|
|
||||||
access_log /var/log/nginx/hugo_access.log;
|
access_log /var/log/nginx/hugo_access.log;
|
||||||
error_log /var/log/nginx/hugo_error.log;
|
error_log /var/log/nginx/hugo_error.log;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user