From b78238d8d7edfb0e495f958fed1cd9a66a5df095 Mon Sep 17 00:00:00 2001
From: "Rausch, Fabian" <fabian.rausch@studium.uni-hamburg.de>
Date: Sun, 25 Oct 2020 21:11:25 +0100
Subject: [PATCH] Add nginx config for deepL translator

---
 nginx-config-translator | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 nginx-config-translator

diff --git a/nginx-config-translator b/nginx-config-translator
new file mode 100644
index 0000000..b1073ac
--- /dev/null
+++ b/nginx-config-translator
@@ -0,0 +1,9 @@
+    location /translate {
+            proxy_pass         http://127.0.0.1:6061/;
+            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