qgis / qgis-docker

Official Docker image for QGIS Server and Desktop
GNU Affero General Public License v3.0
67 stars 21 forks source link

include default fastcgi_params to allow for example POST requests #11

Closed mbernasocchi closed 5 years ago

mbernasocchi commented 5 years ago

doing things like:

curl --output - --data "bbox=2551359,1211640,2556386,1213982&crs=EPSG%3A2056&dpi=96&&format=image%2Fpng&height=885&layers=pont&map=%2Fio%2Fdata%2Fproject%2Eqgs&request=GetMap&service=WMS&width=1900" http://HOST_IP/cgi-bin/qgis_mapserv.fcgi  

Fail without

fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param REQUEST_BODY $request_body;

adding include fastcgi_params; is the standard way to add this