aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDawid Potocki <dawid@dawidpotocki.com>2021-03-01 00:50:11 +1300
committerDawid Potocki <dawid@dawidpotocki.com>2021-03-01 00:50:11 +1300
commit16030e3648b5293ea868a27767f9d120964900bb (patch)
tree80127bc40f8ecf17e81aeb3fded0ad3f58c8b57d
parent034f56e4fdde4b189fca79a7823e0ace974ffdb4 (diff)
Remove `mail.dawidpotocki.com` from nginx
-rw-r--r--nginx/000-main.conf8
1 files changed, 3 insertions, 5 deletions
diff --git a/nginx/000-main.conf b/nginx/000-main.conf
index 90c9aff..e433bcd 100644
--- a/nginx/000-main.conf
+++ b/nginx/000-main.conf
@@ -3,10 +3,9 @@
server {
listen 80;
listen [::]:80;
- server_name {{ site.domain }} www.{{ site.domain }} {{ site.mail_domain }};
+ server_name {{ site.domain }} www.{{ site.domain }};
if ($host = www.{{ site.domain }}) { return 301 https://{{ site.domain }}$request_uri; }
- if ($host = {{ site.mail_domain }}) { return 301 https://{{ site.domain }}/mail$request_uri; }
if ($host = {{ site.domain }}) { return 301 https://$host$request_uri; }
include /var/www/{{ site.domain }}/nginx/040-logs.conf;
@@ -16,12 +15,11 @@ server {
server {
- listen [::]:443 ssl http2 ipv6only=on;
listen 443 ssl http2;
- server_name {{ site.domain }} www.{{ site.domain }} {{ site.mail_domain }};
+ listen [::]:443 ssl http2;
+ server_name {{ site.domain }} www.{{ site.domain }};
if ($host = www.{{ site.domain }}) { return 301 https://{{ site.domain }}$request_uri; }
- if ($host = {{ site.mail_domain }}) { return 301 https://{{ site.domain }}/mail$request_uri; }
root /var/www/{{ site.domain }};
index index.html;