diff --git a/src/backend/templates/_location.conf b/src/backend/templates/_location.conf index d31befe..4a1ca91 100644 --- a/src/backend/templates/_location.conf +++ b/src/backend/templates/_location.conf @@ -5,4 +5,5 @@ proxy_set_header X-Forwarded-For $remote_addr; proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}; {{ advanced_config }} - } \ No newline at end of file + } + diff --git a/src/backend/templates/default.conf b/src/backend/templates/default.conf index 8660e5b..7ed1af9 100644 --- a/src/backend/templates/default.conf +++ b/src/backend/templates/default.conf @@ -25,7 +25,7 @@ server { {%- if value == "html" %} root /data/nginx/default_www; location / { - try_files $uri /index.html ={{ meta.http_code }}; + try_files $uri /index.html; } {%- endif %} } diff --git a/src/frontend/js/app/settings/default-site/main.ejs b/src/frontend/js/app/settings/default-site/main.ejs index d434c90..126c9d0 100644 --- a/src/frontend/js/app/settings/default-site/main.ejs +++ b/src/frontend/js/app/settings/default-site/main.ejs @@ -38,30 +38,6 @@ </div> <div class="col-sm-12 col-md-12 option-item option-html"> - <div class="form-group"> - <label class="form-label">HTTP Status Code</label> - <% - var code = meta && typeof meta.http_code !== 'undefined' ? parseInt(meta.http_code, 10) : 200; - var codes = [ - [200, 'OK'], - [204, 'No Content'], - [400, 'Bad Request'], - [401, 'Unauthorized'], - [403, 'Forbidden'], - [404, 'Not Found'], - [418, 'I\'m a Teapot'], - [500, 'Internal Server Error'], - [501, 'Not Implemented'], - [502, 'Bad Gateway'], - [503, 'Service Unavailable'] - ]; - %> - <select class="custom-select" name="meta[http_code]"> - <% codes.map(function(item) { %> - <option value="<%- item[0] %>"<%- code === item[0] ? ' selected' : '' %>><%- item[0] %> - <%- item[1] %></option> - <% }); %> - </select> - </div> <div class="form-group"> <div class="form-label">HTML Content</div> <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>