[qgis-qwc2] HTTP connect proxy

Gregor Scharf scharforama at gmail.com
Wed Mar 23 03:48:33 PDT 2022


Hi,

Is it possible to access external resources through HTTP connect proxy? An
external resource (gibs.earthdata.nasa.gov) is used in qwc_demo.

I use

https://github.com/qwc-services/qwc-docker

with

https://github.com/qwc-services/qwc-qgis-server.

I get error (1 minute timeout):

http://localhost:8001/qgis/qwc_demo?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetProjectSettings&CLEARCACHE=1

qwc-qgis-server_1              | 14:20:31 WARNING ClearCapabilities[111]:
Cached cleared : /data/qwc_demo.qgs
qwc-qgis-server_1              | 14:21:31 WARNING WMS[111]: Download of
capabilities failed:
qwc-qgis-server_1              | Operation canceled
qwc-qgis-server_1              | 14:21:31 WARNING Network[111]: Network
request
https://gibs.earthdata.nasa.gov/wmts/epsg3857/best/1.0.0/WMTSCapabilities.xml
timed out
qwc-qgis-server_1              | 14:21:31 CRITICAL Server[111]: Error,
Layer(s) Blue_Marble_Shaded_Relief__MODIS_20180710132857174 not valid in
project /data/qwc_demo.qgs
qwc-qgis-server_1              | 14:21:31 WARNING Server[111]:
<ServerException>Layer(s) not valid</ServerException>

What I tried:

/qwc-docker/qwc-qgis-server/Dockerfile:
# ...
ARG HTTP_PROXY
ENV HTTP_PROXY ${HTTP_PROXY}
ARG HTTPS_PROXY
ENV HTTPS_PROXY ${HTTPS_PROXY}
ARG NO_PROXY
ENV NO_PROXY ${NO_PROXY}

ENV http_proxy ${HTTP_PROXY}
ENV https_proxy ${HTTPS_PROXY}
ENV no_proxy ${NO_PROXY}

RUN touch /etc/apt/apt.conf
# ...

/etc/apache2/sites-enabled/qgis-server.conf:
# ...
ProxyRemoteMatch ^https?://.+[.].+/ http://corporate.proxy:3128
# ...

Not working. Help.

Best Regards
Gregor Scharf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-qwc2/attachments/20220323/97cfac12/attachment.html>


More information about the qgis-qwc2 mailing list