end
nginx_site "default" do
- action [:delete]
+ template "nginx_default.conf.erb"
+ directory "/srv/imagery/default"
restart_nginx false
end
--- /dev/null
+server {
+ listen 80 fastopen=1024 default_server;
+ server_name _;
+ return 404 'default imagery server vhost. Please use correct URL.';
+ add_header Content-Type text/plain;
+}
server {
- listen 80 fastopen=1024;
+ listen 80;
server_name <%= @name %> a.<%= @name %> b.<%= @name %> c.<%= @name %><% @aliases.each do |alias_name| %> <%= alias_name %> a.<%= alias_name %> b.<%= alias_name %> c.<%= alias_name %><%- end -%>;
root "/srv/<%= @name %>";