summaryrefslogtreecommitdiffstats
path: root/katrin.d/kaas-auto-bora.template
blob: b6560a95e2a9a469d0451f239adce8367cc60484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
location /@name@/ {
	proxy_set_header Host @name@.kaas.kit.edu;
	proxy_set_header X-Real-IP $remote_addr;
	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_set_header X-Forwarded-Proto $scheme;
	proxy_set_header Accept-Encoding "";

	proxy_pass http://@name@.kaas.kit.edu/;
	sub_filter @name@.kaas.kit.edu $host/@name@;
	sub_filter "'/getdata/" "'/@name@/getdata/";
	sub_filter '"/getdata/' '"/@name@/getdata/';
	sub_filter "'/static/" "'/@name@/static/";
	sub_filter '"/static/' '"/@name@/static/';
	proxy_redirect default;
#	proxy_redirect http://@name@.kaas.kit.edu http://$host/@name@;
}