summaryrefslogtreecommitdiffstats
path: root/katrin.d/kaas-auto-bora.template
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-12-12 16:02:40 +0100
committerSuren A. Chilingaryan <csa@suren.me>2019-12-12 16:02:40 +0100
commitc083136d946224af62822e8a6585ad0d9bfdffce (patch)
treebbd3119e9468a0fbb586b1b49a5322b364c624ea /katrin.d/kaas-auto-bora.template
parent83fccfa25f622fbbd41c19102648179c93f58df5 (diff)
downloadiperouter-master.tar.gz
iperouter-master.tar.bz2
iperouter-master.tar.xz
iperouter-master.zip
Generate also BORA servicesHEADmaster
Diffstat (limited to 'katrin.d/kaas-auto-bora.template')
-rw-r--r--katrin.d/kaas-auto-bora.template16
1 files changed, 16 insertions, 0 deletions
diff --git a/katrin.d/kaas-auto-bora.template b/katrin.d/kaas-auto-bora.template
new file mode 100644
index 0000000..b6560a9
--- /dev/null
+++ b/katrin.d/kaas-auto-bora.template
@@ -0,0 +1,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@;
+}