diff options
Diffstat (limited to 'katrin.d/kaas-auto.template')
-rw-r--r-- | katrin.d/kaas-auto.template | 12 |
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@; +} |