ChehST / dancesport

Web приложение, где составные части изолированы между собой контейнерами docker
https://dancesport.am/
0 stars 0 forks source link

SSL cerbot #4

Closed ChehST closed 1 year ago

ChehST commented 1 year ago

Контейнер с certbot не может получить сертификат, пишет следующее

dancesport-certbot-1     | 
dancesport-certbot-1     | Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
dancesport-certbot-1     |   Domain: dancesport.am
dancesport-certbot-1     |   Type:   connection
dancesport-certbot-1     |   Detail: 195.250.79.45: Fetching http://dancesport.am/.well-known/acme-challenge/1HSECUREMASKDUMMIESP74: Connection refused
dancesport-certbot-1     | 
dancesport-certbot-1     | Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.
dancesport-certbot-1     | 
dancesport-certbot-1     | Some challenges have failed.
dancesport-certbot-1     | Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
dancesport-certbot-1 exited with code 1

Логи посмотреть не могу потому что он сразу слетает с кодом 1

ChehST commented 1 year ago

контейнер с nginx постоянно ругается из-за этого

dancesport-nginx-1       | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist
dancesport-nginx-1       | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
dancesport-nginx-1       | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
dancesport-nginx-1       | /docker-entrypoint.sh: Configuration complete; ready for start up
dancesport-nginx-1       | 2023/04/29 11:50:02 [emerg] 1#1: cannot load certificate "/etc/letsencrypt/live/dancesport.am/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/dancesport.am/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
dancesport-nginx-1       | nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/dancesport.am/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/dancesport.am/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
ChehST commented 1 year ago

d8282c5 решил пролему