3liz / py-qgis-server

QGIS embbeded WMS/WFS/WCS asynchronous scalable http server
https://docs.3liz.org/py-qgis-server
Mozilla Public License 2.0
68 stars 16 forks source link

Qgis: WMS: Download of capabilities failed: SSL handshake failed #64

Closed luca76 closed 1 year ago

luca76 commented 1 year ago

Hello, using 3liz qgis server docker.

Is there any way to tell to QGIS Server to ignore SSL errors?

In the log I'm having these lines:

2023-05-09 10:00:44,826 WARNING [50]    Qgis: WMS: Download of capabilities failed: SSL handshake failed
dmarteau commented 1 year ago

I don't think so but this a more a related Qgis issue than a py-qgis-server issue.

luca76 commented 1 year ago

After some investigation, I think I solved the problem:

1) set this environment variable in docker-compose.yml:

QGIS_AUTH_DB_DIR_PATH: /srv/projects

2) copy an empty qgis-auth.db file from your QGIS profile (generated by the desktop app) in that docker volume

profit!

Reference: this issue https://github.com/opengisch/qgis-docker/commit/6766f88a7f7e27c850244791fa8d131cc6fa5ae2 states that without this setting, WMS/WFS/W*S over https do not work anymore

It would be useful to write this in the documentation