mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-05-29 23:30:57 +08:00
22 lines
615 B
Plaintext
22 lines
615 B
Plaintext
server {
|
|
listen <%= site.listen %>;
|
|
server_name <%= site.server_name.join(' ') %>;
|
|
|
|
index <%= site.index.join(' ') %>;
|
|
autoindex <%= site.auto_index ? 'on' : 'off' %>;
|
|
|
|
root <%= site.root %>;
|
|
|
|
<% _.each(site.location, function(rules, path) { %>
|
|
location <%= path %> {
|
|
<% _.each(rules, function(param, command) { %>
|
|
<% if(_.isArray(param)) { %>
|
|
<%= command %> <%= param.join(' ') %>;
|
|
<% } else { %>
|
|
<%= command %> <%= param %>;
|
|
<% } %>
|
|
<% }); %>
|
|
}
|
|
<% }); %>
|
|
}
|