8gears / containerized-guacamole

Apache Guacamole out of the box compose setup with Nginx Reverse Proxy, Lets Encrypt. Simple and easy deployable with Docker Compose. Uses only Official Guacamole Docker Images
Apache License 2.0
97 stars 33 forks source link

re-initialize nginx / ssl after domain-change #9

Closed theoneandonly-vector closed 2 years ago

theoneandonly-vector commented 2 years ago

hey there I had to move away from my .tk domain. now I don't want to lose my guacamole-config and just rewrote the domain inside .env

but when I restart docker-compose it will provide me with a temporary cert and shows "503 Service Temporarily Unavailable"

is there a way to just re-initialize the nginx-part?

Vad1mo commented 2 years ago

Maybe you need to check the tomcat part as the old domain might be there. check the guacamole docs.

let me know if you fund a solution, i ll add it to the docs then

theoneandonly-vector commented 2 years ago

I was looking around in the docker container while it's running a bit.. and I think it's not Tomcats part. what I can see is that in nginx container there is only the old cert-folder and inside "default.conf" there's only the old domain name too.. so I really think re-initializing the nginx-part would fix this.. but I dont' know what would eb the best way to do that.

theoneandonly-vector commented 2 years ago

changing the domain inside the "default.conf" fixes the nginx-part I think (cert is correct after this) the file is here:

/var/lib/docker/volumes/containerized-guacamole_conf/_data/default.conf

but still the "502 Bad Gateway" occurs

theoneandonly-vector commented 2 years ago

alright.. just had not enough space. so changing .env and default.conf is enough :)