DewGew / DZGA-Flask

Domoticz Google Assisting using Flask
GNU General Public License v3.0
8 stars 4 forks source link

Unable to activate SSL #39

Closed Xenomes closed 6 months ago

Xenomes commented 7 months ago

Hi, I just updated to the latest version 23.8. I'm attempting to enable SSL using the same certificate and key that I successfully used with the previous version (DZGA), but it doesn't seem to be working for me. The message I'm encountering after the boot is:

2023-11-17 20:38:55 Smarthome server has started.
2023-11-17 20:38:55 Running without ssl
DewGew commented 7 months ago

41 try without checking for ssl files.

DewGew commented 7 months ago

From @Xenomes On a clean install, running in the Python venv, SSL works. Running it in Docker (Dockerfile) results in an error.

DewGew commented 7 months ago

Maybe need to add a volume for ssl cert and keys in dockerfile or put the cert and keys in config folder?

Xenomes commented 7 months ago

Yes, that is a good idea to put them there. Then the issue is resolved; I am testing it right now.

Update: Putting the files in the config and changing the path to /config/, the SSL is running in the Docker. Also the ${USER}, ${HOME} or ~ is not working in the docker yaml file. When hard coding the path to /home/pi/DZGA-Flask the volumes where working.

DewGew commented 7 months ago

Are running with docker compose? ${USER} works for me with composer

Xenomes commented 7 months ago

Yes, I use Docker Compose. sudo docker-compose -f dzga-compose.yaml up -d The Docker starts, but the volumes weren't used.

Xenomes commented 6 months ago

Issue with SSL was fixed, volumes is a docker or Ubuntu issue,