summaryrefslogtreecommitdiffstats
path: root/katrin.d/kaas-auto.template
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-10-06 05:53:11 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-10-06 05:53:11 +0200
commitb794f84da1aaf446a3965f9b9363f997b3183872 (patch)
treed59f80c7587b8748b79cdeecfb112892e7ccf083 /katrin.d/kaas-auto.template
downloadiperouter-b794f84da1aaf446a3965f9b9363f997b3183872.tar.gz
iperouter-b794f84da1aaf446a3965f9b9363f997b3183872.tar.bz2
iperouter-b794f84da1aaf446a3965f9b9363f997b3183872.tar.xz
iperouter-b794f84da1aaf446a3965f9b9363f997b3183872.zip
Initial configuration
Diffstat (limited to 'katrin.d/kaas-auto.template')
-rw-r--r--katrin.d/kaas-auto.template12
1 files changed, 12 insertions, 0 deletions
diff --git a/katrin.d/kaas-auto.template b/katrin.d/kaas-auto.template
new file mode 100644
index 0000000..502d2b9
--- /dev/null
+++ b/katrin.d/kaas-auto.template
@@ -0,0 +1,12 @@
+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@;
+ proxy_redirect default;
+# proxy_redirect http://@name@.kaas.kit.edu http://$host/@name@;
+}