Commit 1d9885aa authored by Chris Croome's avatar Chris Croome
Browse files

autoconfig tweaks

parent 701e9efe
---
- name: Let's Encrypt
hosts: "{{ hostname }}"
roles:
- letsencrypt
......@@ -15,33 +15,9 @@
blockinfile:
dest: /var/mailcow/data/conf/nginx/site.conf
block: |
server {
listen 80;
server_name autoconfig.*;
root /web;
location /.well-known/acme-challenge/ {
allow all;
default_type "text/plain";
}
location / {
return 301 https://autoconfig.{{ hostname }}$request_uri;
}
}
server {
listen 80;
server_name autodiscover.*;
root /web;
location /.well-known/acme-challenge/ {
allow all;
default_type "text/plain";
}
location / {
return 301 https://autodiscover.{{ hostname }}$request_uri;
}
}
server {
listen 80 default_server;
server_name {{ hostname }} www.{{ hostname }} autodiscover.{{ hostname }} autoconfig.{{ hostname }};
server_name {{ hostname }} www.{{ hostname }} autodiscover.* autoconfig.*;
root /web;
location /.well-known/acme-challenge/ {
allow all;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment