From b794f84da1aaf446a3965f9b9363f997b3183872 Mon Sep 17 00:00:00 2001
From: "Suren A. Chilingaryan" <csa@suren.me>
Date: Sun, 6 Oct 2019 05:53:11 +0200
Subject: Initial configuration

---
 katrin.d/kaas-auto.template | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 katrin.d/kaas-auto.template

(limited to 'katrin.d/kaas-auto.template')

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@;
+}
-- 
cgit v1.2.3