add certbot but have to re-see because need to specify domain and email
This commit is contained in:
12
nginx.conf
12
nginx.conf
@@ -2,10 +2,19 @@ server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name _;
|
||||
# server_name subdomain.your-domain.com;
|
||||
# server_tokens off;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
##########################
|
||||
# Lets enkript
|
||||
##########################
|
||||
location /.well-known/acme-challenge/ {
|
||||
root /var/www/certbot; # Root directory for Certbot challenges
|
||||
}
|
||||
|
||||
##########################
|
||||
# API
|
||||
##########################
|
||||
@@ -34,6 +43,9 @@ server {
|
||||
##########################
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
# proxy_pass http://subdomain.your-domain.com:3000;
|
||||
# Proxy requests to backend application running on port
|
||||
# A revoir dans lets encrypt
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
|
||||
Reference in New Issue
Block a user