From 57771ea00fcf18027feb060c2aa454290a0565e1 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Mon, 1 Feb 2021 19:10:10 +0200
Subject: [PATCH] zpush.shore.co.il.

---
 conf.d/zpush.shore.co.il.conf | 28 ++++++++++++++++++++++++++++
 docker-compose.yml            |  5 +++--
 2 files changed, 31 insertions(+), 2 deletions(-)
 create mode 100644 conf.d/zpush.shore.co.il.conf

diff --git a/conf.d/zpush.shore.co.il.conf b/conf.d/zpush.shore.co.il.conf
new file mode 100644
index 0000000..46f4e6e
--- /dev/null
+++ b/conf.d/zpush.shore.co.il.conf
@@ -0,0 +1,28 @@
+map $host $zpush { default z-push; }
+
+server {
+    listen      80;
+    listen      [::]:80;
+    server_name zpush.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 zpush.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://$zpush;
+        proxy_http_version      1.1;
+        include                 snippets/proxy-headers.conf;
+    }
+}
diff --git a/docker-compose.yml b/docker-compose.yml
index b9759f0..d215c9f 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -9,12 +9,13 @@ services:
     networks:
       default:
         aliases:
-          - nextcloud.shore.co.il
+          - *hostname
+          - code.shore.co.il
           - git.shore.co.il
           - lam.shore.co.il
           - mta-sts.shore.co.il
-          - code.shore.co.il
           - vouch.shore.co.il
+          - zpush.shore.co.il
     ports:
       - '80:80'
       - '443:443'
-- 
GitLab