From 0d17bacc294a503c2ad2e499a61564d20fccced7 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Fri, 29 Jan 2021 19:57:18 +0200
Subject: [PATCH] vouch.shore.co.il

---
 conf.d/vouch.shore.co.il.conf | 28 ++++++++++++++++++++++++++++
 docker-compose.yml            |  1 +
 2 files changed, 29 insertions(+)
 create mode 100644 conf.d/vouch.shore.co.il.conf

diff --git a/conf.d/vouch.shore.co.il.conf b/conf.d/vouch.shore.co.il.conf
new file mode 100644
index 0000000..a826c26
--- /dev/null
+++ b/conf.d/vouch.shore.co.il.conf
@@ -0,0 +1,28 @@
+map $host $vouch { default vouch; }
+
+server {
+    listen      80;
+    listen      [::]:80;
+    server_name vouch.shore.co.il;
+    include     snippets/robots-disallow-all.conf;
+    include     snippets/ads-txt.conf;
+    include     snippets/security-txt.conf;
+    include     snippets/www-acme-challenge.conf;
+    include     snippets/redirect-https.conf;
+}
+
+server {
+    listen      443 ssl http2;
+    listen      [::]:443 ssl http2;
+    server_name vouch.shore.co.il;
+    include     snippets/robots-disallow-all.conf;
+    include     snippets/ads-txt.conf;
+    include     snippets/security-txt.conf;
+    include     snippets/ssl.conf;
+
+    location / {
+        proxy_pass              http://$vouch:9090;
+        proxy_http_version      1.1;
+        include                 snippets/proxy-headers.conf;
+    }
+}
diff --git a/docker-compose.yml b/docker-compose.yml
index 27c33ec..b9759f0 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -14,6 +14,7 @@ services:
           - lam.shore.co.il
           - mta-sts.shore.co.il
           - code.shore.co.il
+          - vouch.shore.co.il
     ports:
       - '80:80'
       - '443:443'
-- 
GitLab