File tree 3 files changed +3
-26
lines changed
frontend/js/app/settings/default-site
3 files changed +3
-26
lines changed Original file line number Diff line number Diff line change 5
5
proxy_set_header X-Forwarded-For $remote_addr;
6
6
proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }};
7
7
{{ advanced_config }}
8
- }
8
+ }
9
+
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ server {
25
25
{%- if value == "html" %}
26
26
root /data/nginx/default_www;
27
27
location / {
28
- try_files $uri /index.html ={{ meta.http_code }} ;
28
+ try_files $uri /index.html;
29
29
}
30
30
{%- endif %}
31
31
}
Original file line number Diff line number Diff line change 38
38
</div >
39
39
40
40
<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 >
65
41
<div class =" form-group" >
66
42
<div class =" form-label" >HTML Content</div >
67
43
<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 >
You can’t perform that action at this time.
0 commit comments