Add fallback nginx host

This commit is contained in:
Disassembler 2018-11-04 19:50:48 +01:00
parent 89a430fe5a
commit 5de59917cd
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -36,3 +36,26 @@ server {
return 200 "vm-pong"; return 200 "vm-pong";
} }
} }
server {
listen [::]:443 ssl http2;
server_name ~^(.*)\.spotter\.vm$;
location / {
return 503;
}
location /static {
root /usr/share/vmmgr;
}
error_page 503 /503.html;
location = /503.html {
root /usr/share/vmmgr/templates;
}
location = /vm-ping {
add_header Content-Type text/plain;
return 200 "vm-pong";
}
}