Skip to content

Commit

Permalink
[georchestra] add unmodified mapstore/proxy.properties template
Browse files Browse the repository at this point in the history
  • Loading branch information
landryb committed Dec 10, 2024
1 parent 23c9f7f commit 62581f6
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions roles/georchestra/templates/mapstore/proxy.properties.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# ##################
# CONNECTION MANAGER
# ##################
timeout = 30000
connection_timeout = 30000
max_total_connections = 60
default_max_connections_per_host = 6

# #################
# Stream Byte Size
# #################
defaultStreamByteSize=1024

# ###########
# WHITE LISTS
# ###########
# White lists, if defined, limit the requests that are accepted and handled by the proxy. Any request that is not
# matching a defined whitelist will be rejected.

# hostnameWhitelist defines the accepted target hosts for the internal proxy.
# The list should be set to the hosts whose CORS headers do not allow direct access
hostnameWhitelist = demo.geo-solutions.it

# mimetype whitelist limit the accepted values for the contentype header in response from the proxied host
mimetypeWhitelist = application/force-download,text/html,text/plain,application/xml,text/xml,application/vnd.ogc.sld+xml,application/vnd.ogc.gml,application/json,application/vnd.ogc.wms_xml,application/x-www-form-urlencoded,image/png,application/pdf,text/csv,application/zip,text/csv;charset=UTF-8

# methods whitelist limit the accepted values for the HTTP method in requests
methodsWhitelist = GET,POST,PUT

# hosts whitelist is like hostname whitelist, but IP addresses are used instead of host names
#hostsWhitelist = 127.0.0.1

# reqtype whitelist allow a regular expression based filter on the request urls
# it is possible to defined one or more whitelist, each with a specific filter
# only urls matching one of the whitelist will be forwarded
#reqtypeWhitelist.capabilities = (([&]?([Rr][Ee][Qq][Uu][Ee][Ss][Tt]=[Gg]et[Cc]apabilities))|([&]?(version=1\\.1\\.1)))+
reqtypeWhitelist.capabilities = .*[Gg]et[Cc]apabilities.*
reqtypeWhitelist.featureinfo = .*[Gg]et[Ff]eature[Ii]nfo.*
reqtypeWhitelist.csw = .*csw.*
reqtypeWhitelist.geostore = .*geostore.*
reqtypeWhitelist.generic = (.*exist.*)|(.*pdf.*)|(.*map.*)|(.*wms.*)|(.*wmts.*)|(.*wfs.*)|(.*ows.*)

0 comments on commit 62581f6

Please sign in to comment.