0

Context

I have a dockerized QGIS server project running and serving tiles through an OGC WMTS.

E.g. this URL:

http://{baseurl}/?SERVICE=WMTS&VERSION=1.3.0&REQUEST=GetTile&LAYER={my_custom_layer}&STYLE=default&TileMatrixSet=EPSG:3857&TileMatrix=22&TileRow=1079050&TileCol=2274423&format=image/png

shows me a tile in Firefox:

WMTS tile sample

This works great.

But this is an HTTP request and I need to enable HTTPS.

If I query the same tile using HTTPS instead of HTTP, I have to wait forever, nothing happens, and the server stdout doesn't display any incoming requests.

Question

How could I enable HTTPS in my QGIS server?
I didn't find any information about it, either here or there.

Environment

The aforementioned docker image hosted on a Ubuntu 18.04 server machine.
Which gives:

# qgis --version
QGIS 3.10.6-A Coruña 'A Coruña' (ec80021f49)
2
  • Looks like a folder needs to be write-able according to this info (at the bottom) issues.qgis.org/issues/16462
    – Mapperz
    Commented Jul 5, 2020 at 20:11
  • Thanks. But it's not clear to me where should I add this /srv/qgis/.qgis2 folder; inside the docker container or on the machine hosting that container? And in which file should I append the line FcgidInitialEnv HOME "/srv/qgis"? (I'm not a web server expert). Commented Jul 6, 2020 at 17:11

1 Answer 1

0

Same issue,

I guess that configuring nginx/apache for ssl and isolate gqis ports inside the docker network may be a solution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.