Skip to content

Instantly share code, notes, and snippets.

@mbernasocchi
Created May 12, 2020 10:03
Show Gist options
  • Save mbernasocchi/1459549a619a0910169063e56e75b7ac to your computer and use it in GitHub Desktop.
Save mbernasocchi/1459549a619a0910169063e56e75b7ac to your computer and use it in GitHub Desktop.
# domain name.
localhost:8080
# Set this path to your site's directory.
root * /io/www/html
# Enable the static file server.
file_server
# localhost:8080/ows/AV_TH_V1?SERVICE=wms
# directly call QGIS via fcgi
reverse_proxy qgisserver:9993 {
transport fastcgi {
env QUERY_STRING {query}&map=/io/data/{http.regexp.map_file.1}.qgs
env PGSERVICEFILE /io/.pg_service.conf
# fastcgi_param PGSERVICEFILE /io/.pg_service.conf;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment