-
Notifications
You must be signed in to change notification settings - Fork 7
/
geoserver.conf.template
30 lines (27 loc) · 1.24 KB
/
geoserver.conf.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
location /geoserver/ {
auth_request /secure-geoserver-auth;
auth_request_set $auth_status $upstream_status;
proxy_pass http://geoserver:8080/geoserver/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $real_scheme;
proxy_set_header Accept-Encoding "";
gzip_proxied any;
gzip on;
gzip_comp_level 1;
gzip_types application/json text/plain application/xml text/html;
}
location = /secure-geoserver-auth {
internal;
${GEOSERVER_SKIP_AUTH_PROXY_INCLUDE}
# If GEOSERVER_SKIP_AUTH is "True" then the following section is skipped and this
# location block will always return 200 (which means that the /geoserver/ location, above,
# will be publicly available.
proxy_pass https://${PAVICS_FQDN_PUBLIC}${TWITCHER_VERIFY_PATH}/geoserver$request_uri;
proxy_pass_request_body off;
proxy_set_header Host $host;
proxy_set_header Content-Length "";
proxy_set_header X-Original-URI $request_uri;
proxy_set_header X-Forwarded-Proto $real_scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host:$server_port;
}