Skip to content

Commit d04b7a0

Browse files
committed
Bug fixes
1 parent 71dfd5d commit d04b7a0

File tree

3 files changed

+3
-26
lines changed

3 files changed

+3
-26
lines changed

src/backend/templates/_location.conf

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
proxy_set_header X-Forwarded-For $remote_addr;
66
proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }};
77
{{ advanced_config }}
8-
}
8+
}
9+

src/backend/templates/default.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ server {
2525
{%- if value == "html" %}
2626
root /data/nginx/default_www;
2727
location / {
28-
try_files $uri /index.html ={{ meta.http_code }};
28+
try_files $uri /index.html;
2929
}
3030
{%- endif %}
3131
}

src/frontend/js/app/settings/default-site/main.ejs

-24
Original file line numberDiff line numberDiff line change
@@ -38,30 +38,6 @@
3838
</div>
3939

4040
<div class="col-sm-12 col-md-12 option-item option-html">
41-
<div class="form-group">
42-
<label class="form-label">HTTP Status Code</label>
43-
<%
44-
var code = meta && typeof meta.http_code !== 'undefined' ? parseInt(meta.http_code, 10) : 200;
45-
var codes = [
46-
[200, 'OK'],
47-
[204, 'No Content'],
48-
[400, 'Bad Request'],
49-
[401, 'Unauthorized'],
50-
[403, 'Forbidden'],
51-
[404, 'Not Found'],
52-
[418, 'I\'m a Teapot'],
53-
[500, 'Internal Server Error'],
54-
[501, 'Not Implemented'],
55-
[502, 'Bad Gateway'],
56-
[503, 'Service Unavailable']
57-
];
58-
%>
59-
<select class="custom-select" name="meta[http_code]">
60-
<% codes.map(function(item) { %>
61-
<option value="<%- item[0] %>"<%- code === item[0] ? ' selected' : '' %>><%- item[0] %> - <%- item[1] %></option>
62-
<% }); %>
63-
</select>
64-
</div>
6541
<div class="form-group">
6642
<div class="form-label">HTML Content</div>
6743
<textarea class="form-control text-monospace html-content" name="meta[html]" rows="6" placeholder="<!-- Enter your HTML here -->"><%- meta && typeof meta.html !== 'undefined' ? meta.html : '' %></textarea>

0 commit comments

Comments
 (0)