From 45245138fa2fc27c192c07580bb8bd1aed96e6d7 Mon Sep 17 00:00:00 2001
From: "Welter, Felix" <felix.welter@studium.uni-hamburg.de>
Date: Fri, 16 Oct 2020 11:50:01 +0200
Subject: [PATCH] Add two more example configs of nginx

---
 nginx-config-slide-index | 14 ++++++++++++++
 nginx-config-wikipedia   | 18 ++++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 nginx-config-slide-index
 create mode 100644 nginx-config-wikipedia

diff --git a/nginx-config-slide-index b/nginx-config-slide-index
new file mode 100644
index 0000000..40cc290
--- /dev/null
+++ b/nginx-config-slide-index
@@ -0,0 +1,14 @@
+location / {
+        proxy_pass         http://127.0.0.1:8080/;
+        proxy_http_version 1.1;
+        proxy_set_header Upgrade $http_upgrade;
+        proxy_set_header Connection "Upgrade";
+        proxy_set_header Host $host;
+        proxy_buffering off;
+        proxy_connect_timeout       600;
+        proxy_send_timeout          600;
+        proxy_read_timeout          600;
+        send_timeout                600;
+        add_header 'Access-Control-Allow-Origin' '*' always;
+        add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
+}
diff --git a/nginx-config-wikipedia b/nginx-config-wikipedia
new file mode 100644
index 0000000..918b0b3
--- /dev/null
+++ b/nginx-config-wikipedia
@@ -0,0 +1,18 @@
+    location /es {
+            proxy_pass         http://127.0.0.1:5000/;
+            proxy_http_version 1.1;
+            proxy_set_header Upgrade $http_upgrade;
+            proxy_set_header Connection "Upgrade";
+            proxy_set_header Host $host;
+            add_header 'Access-Control-Allow-Origin' '*' always;
+            add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
+    }
+    location /wls {
+            proxy_pass         http://127.0.0.1:5001/;
+            proxy_http_version 1.1;
+            proxy_set_header Upgrade $http_upgrade;
+            proxy_set_header Connection "Upgrade";
+            proxy_set_header Host $host;
+            add_header 'Access-Control-Allow-Origin' '*' always;
+            add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
+    }
\ No newline at end of file
-- 
GitLab