Commit 912cf528 authored by Mattia Rizzolo's avatar Mattia Rizzolo

nginx: now that we also have a cert for roadhouse.ubuntu-it.org also redirect the default site

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mapreri@ubuntu.com>
parent 83d54fb8
......@@ -7,9 +7,22 @@ server {
listen [::]:80 default;
location / {
return 204 "This is {{ inventory_hostname }}. If you came here there is a misconfiguration somewhere. Please inform gruppo-sistemisti@liste.ubuntu-it.org about the issue.";
add_header Content-Type text/plain;
return 302 https://$host$request_uri;
}
include /etc/nginx/snippets/dehydrated.conf;
}
server {
listen 443 default_server ssl http2;
ssl_certificate {{ ssl_home }}/localcerts/{{ inventory_hostname }}/fullchain.pem;
ssl_certificate_key {{ ssl_home }}/localcerts/{{ inventory_hostname }}/privkey.pem;
location / {
return 200 "This is {{ inventory_hostname }}. If you came here there is a misconfiguration somewhere. Please inform gruppo-sistemisti@liste.ubuntu-it.org about the issue.";
add_header Content-Type text/plain;
}
include snippets/dehydrated.conf;
}
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