sveltekit-docker-nginx
sveltekit-docker-nginx copied to clipboard
Missing file in production build...
Hello I am trying to run prod environment, but I am getting this error inside my container, nginx keeps restarting, and I can't figure it out why, do you have any idea, why am i missing this certificate file ??
2023-02-22T19:46:06.274570699Z 2023/02/22 19:46:06 [emerg] 1#1: cannot load certificate "/etc/letsencrypt/live/wings-blog.com/fullchain.pem": BIO_new_file() failed (SSL: error:80000002:system library::No such file or directory:calling fopen(/etc/letsencrypt/live/wings-blog.com/fullchain.pem, r) error:10000080:BIO routines::no such file)
After running sudo ./setup-ssl.sh, I do get this output: Certificate is saved at: /etc/letsencrypt/live/wings-blog.com/fullchain.pem Key is saved at: /etc/letsencrypt/live/wings-blog.com/privkey.pem
Is the problem in Dockerfile or docker-compose maybe? Or i missed something?