From 90c0bd13f6ec247bff1b11cb30495f70a3cc47f8 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sun, 2 May 2021 20:39:41 +0300 Subject: [PATCH] nehe.sr and www.nehe.sr. --- conf.d/nehe.sr.conf | 23 +++++++++++++++++++++++ conf.d/www.nehe.sr.conf | 22 ++++++++++++++++++++++ docker-compose.yml | 4 ++++ 3 files changed, 49 insertions(+) create mode 100644 conf.d/nehe.sr.conf create mode 100644 conf.d/www.nehe.sr.conf diff --git a/conf.d/nehe.sr.conf b/conf.d/nehe.sr.conf new file mode 100644 index 0000000..43b399f --- /dev/null +++ b/conf.d/nehe.sr.conf @@ -0,0 +1,23 @@ +server { + listen 80; + listen [::]:80; + server_name nehe.sr; + include snippets/robots-allow-all.conf; + include snippets/ads-txt.conf; + include snippets/security-txt.conf; + include snippets/www-acme-challenge.conf; + include snippets/redirect-www.conf; +} + +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name nehe.sr; + include snippets/robots-allow-all.conf; + include snippets/ads-txt.conf; + include snippets/security-txt.conf; + include snippets/ssl.conf; + include snippets/nextcloud-well-known.conf; + include snippets/activesync.conf; + include snippets/redirect-www.conf; +} diff --git a/conf.d/www.nehe.sr.conf b/conf.d/www.nehe.sr.conf new file mode 100644 index 0000000..ee64ba3 --- /dev/null +++ b/conf.d/www.nehe.sr.conf @@ -0,0 +1,22 @@ +server { + listen 80; + listen [::]:80; + server_name www.nehe.sr; + include snippets/robots-allow-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 www.nehe.sr; + include snippets/robots-allow-all.conf; + include snippets/ads-txt.conf; + include snippets/security-txt.conf; + include snippets/ssl.conf; + root /var/www/www.nehe.sr/; + error_page 404 /; +} diff --git a/docker-compose.yml b/docker-compose.yml index 4fd9708..14a9b0f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,7 +11,10 @@ services: aliases: - *hostname - autoconfig.shore.co.il + - myip.shore.co.il + - nehe.sr - registry.shore.co.il + - www.nehe.sr ports: - '80:80' - '443:443' @@ -21,6 +24,7 @@ services: - '/var/ssl/site.key:/var/ssl/site.key:ro' - '/var/ssl/site.crt:/var/ssl/site.crt:ro' - '/var/ssl/dhparams:/var/ssl/dhparams:ro' + - '/var/www/www.nehe.sr:/var/www/www.nehe.sr:ro' - '/var/www/www.shore.co.il/blog:/var/www/www.shore.co.il/blog:ro' - '/var/www/www.shore.co.il/resume:/var/www/www.shore.co.il/resume:ro' -- GitLab