diff --git a/conf.d/nehe.sr.conf b/conf.d/nehe.sr.conf new file mode 100644 index 0000000000000000000000000000000000000000..43b399fa65def9daf6f7c98199f25aa83d708dce --- /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 0000000000000000000000000000000000000000..ee64ba393862a7912429cd01acd98c1d74e81573 --- /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 4fd9708a1f34c374b0ebdef991d4c29641a4d870..14a9b0f9e02bcbc39eb6b7a3832df38454d0dd29 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'