certbot input logic

This commit is contained in:
skeris 2024-01-24 03:39:51 +03:00
parent 0f05c83f4a
commit 0d9f8dd8cd
2 changed files with 9 additions and 1 deletions

@ -25,5 +25,12 @@ server {
listen 80 ;
listen [::]:80 ;
server_name _;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://$host$request_uri;
}
}

@ -7,4 +7,5 @@ services:
restart: always
volumes:
- ./nginx/certs/:/etc/nginx/certs/:ro
- ./certbot/www:/var/www/certbot/:ro