summaryrefslogtreecommitdiffstats
path: root/katrin.d/data_proxy.variant
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/data_proxy.variant
downloadiperouter-b794f84da1aaf446a3965f9b9363f997b3183872.tar.gz
iperouter-b794f84da1aaf446a3965f9b9363f997b3183872.tar.bz2
iperouter-b794f84da1aaf446a3965f9b9363f997b3183872.tar.xz
iperouter-b794f84da1aaf446a3965f9b9363f997b3183872.zip
Initial configuration
Diffstat (limited to 'katrin.d/data_proxy.variant')
-rw-r--r--katrin.d/data_proxy.variant11
1 files changed, 11 insertions, 0 deletions
diff --git a/katrin.d/data_proxy.variant b/katrin.d/data_proxy.variant
new file mode 100644
index 0000000..2b9a795
--- /dev/null
+++ b/katrin.d/data_proxy.variant
@@ -0,0 +1,11 @@
+location /data {
+ if ($kit_client) {
+ return 301 http://192.168.26.170$request_uri;
+ }
+
+ return 301 http://$host/remote$request_uri;
+}
+
+location /remote/data {
+ proxy_pass http://192.168.26.170/data;
+}