summaryrefslogtreecommitdiff
path: root/playbooks/roles/outbound/templates/proxy/nginx/conf.d/mail.conf
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/roles/outbound/templates/proxy/nginx/conf.d/mail.conf')
-rw-r--r--playbooks/roles/outbound/templates/proxy/nginx/conf.d/mail.conf15
1 files changed, 15 insertions, 0 deletions
diff --git a/playbooks/roles/outbound/templates/proxy/nginx/conf.d/mail.conf b/playbooks/roles/outbound/templates/proxy/nginx/conf.d/mail.conf
new file mode 100644
index 0000000..c810f5a
--- /dev/null
+++ b/playbooks/roles/outbound/templates/proxy/nginx/conf.d/mail.conf
@@ -0,0 +1,15 @@
+server {
+ listen 80;
+ server_name mail.liz.coffee;
+ location / {
+ proxy_pass https://{{ loadbalancer_ip }};
+ proxy_ssl_verify off;
+ proxy_http_version 1.1;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "upgrade";
+ }
+}