Page 1 of 1

Let's encrypt autorenew problem

Posted: Tue Jun 22, 2021 5:11 am
by tecgurus
I'm using proxy_pass with SSL Letsencrypt (auto renew) api.domain.com.nginx.ssl.conf with 2 configurations like this, port 8888 i have a Java Spring Boot application:

location / {
proxy_pass http://134.209.170.XXX:8888;

location @fallback {
proxy_pass http://134.209.170.XXX:8888;

This works fine with the redirect request from api.domain.com.... to the spring boot app but i dont know why this configuration is losed and changed to https with different port #####, i think this occurs when my letsencrypt certbot renew the certificate, is there any way to avoid this change to default values ? or other way to avoid manual configuration each certain time.

Thanks a lot

Re: Let's encrypt autorenew problem

Posted: Wed Jul 14, 2021 9:59 am
by skurudo
May be can help some .well-know location, something separete one from app?

Re: Let's encrypt autorenew problem

Posted: Wed Jul 14, 2021 11:13 am
by tecgurus
I don't understand the posible solution

Re: Let's encrypt autorenew problem

Posted: Wed Jul 14, 2021 12:29 pm
by skurudo
Something like this for your domain config :

Code: Select all

location /.well-known {
    root /var/www/html;
}
root folder may be changed

Re: Let's encrypt autorenew problem

Posted: Tue Aug 10, 2021 9:00 am
by grayfolk
laxmi wrote:
Tue Aug 10, 2021 5:36 am
<...>
This is not related to VestaCP.