2018-08-14 05:59:21 +00:00
|
|
|
<center>
|
2019-09-20 06:42:19 +00:00
|
|
|
<h4>Config from {{serv}}</h4>
|
2018-08-14 05:59:21 +00:00
|
|
|
<p class="accordion-expand-holder">
|
2019-09-20 16:24:45 +00:00
|
|
|
{% if role %}
|
|
|
|
<a class="ui-button ui-widget ui-corner-all" title="Edit this run config" href="config.py?serv={{serv}}&open=open">Edit</a>
|
|
|
|
{% endif %}
|
2019-09-20 06:42:19 +00:00
|
|
|
<a class="accordion-expand-all ui-button ui-widget ui-corner-all" href="#">Expand all</a>
|
2018-09-26 15:10:35 +00:00
|
|
|
<button id="raw">Raw</button>
|
|
|
|
<button id="according" style="display: none;">According</button>
|
2018-08-14 05:59:21 +00:00
|
|
|
</p>
|
|
|
|
</center>
|
|
|
|
<div style="margin-left: 16%" class="configShow">
|
|
|
|
{% set i = 0 -%}
|
|
|
|
{% for line in conf %}
|
|
|
|
{% set i = i + loop.index0 %}
|
2019-05-13 20:07:32 +00:00
|
|
|
{% if not role %}
|
|
|
|
{% if line.startswith('#HideBlockStart') %}
|
|
|
|
<!--{{line}}
|
|
|
|
{% continue %}
|
|
|
|
{% endif %}
|
|
|
|
{% if line.startswith('#HideBlockEnd') %}
|
|
|
|
{{line}}-->
|
|
|
|
{% continue %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2018-08-14 05:59:21 +00:00
|
|
|
{% if line.startswith('global') %}
|
2019-09-20 06:42:19 +00:00
|
|
|
<span class="param">{{ line }}
|
2019-09-20 16:24:45 +00:00
|
|
|
{% if role %}
|
2019-09-20 06:42:19 +00:00
|
|
|
<span class="accordion-link">
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit</a>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
</span><div>
|
2018-08-14 05:59:21 +00:00
|
|
|
{% continue %}
|
|
|
|
{% endif %}
|
|
|
|
{% if line.startswith('defaults') %}
|
2019-09-20 06:42:19 +00:00
|
|
|
</div><span class="param">{{ line }}
|
2019-09-20 16:24:45 +00:00
|
|
|
{% if role %}
|
2019-09-20 06:42:19 +00:00
|
|
|
<span class="accordion-link">
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit</a>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
</span><div>
|
2018-08-14 05:59:21 +00:00
|
|
|
{% continue %}
|
|
|
|
{% endif %}
|
|
|
|
{% if line.startswith('listen') %}
|
2019-09-20 06:42:19 +00:00
|
|
|
</div><span class="param">{{ line }}
|
2019-09-20 16:24:45 +00:00
|
|
|
{% if role %}
|
2019-09-20 06:42:19 +00:00
|
|
|
<span class="accordion-link">
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit</a>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
</span><div>
|
2018-08-14 05:59:21 +00:00
|
|
|
{% continue %}
|
|
|
|
{% endif %}
|
|
|
|
{% if line.startswith('frontend') %}
|
2019-09-20 06:42:19 +00:00
|
|
|
</div><span class="param">{{ line }}
|
2019-09-20 16:24:45 +00:00
|
|
|
{% if role %}
|
2019-09-20 06:42:19 +00:00
|
|
|
<span class="accordion-link">
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit</a>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
</span><div>
|
2018-08-14 05:59:21 +00:00
|
|
|
{% continue %}
|
|
|
|
{% endif %}
|
|
|
|
{% if line.startswith('backend') %}
|
2019-09-20 06:42:19 +00:00
|
|
|
</div><span class="param"> {{ line }}
|
2019-09-20 16:24:45 +00:00
|
|
|
{% if role %}
|
2019-09-20 06:42:19 +00:00
|
|
|
<span class="accordion-link">
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit</a>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
</span><div>
|
2018-08-14 05:59:21 +00:00
|
|
|
{% continue %}
|
|
|
|
{% endif %}
|
|
|
|
{% if line.startswith('cache') %}
|
2018-08-14 09:54:39 +00:00
|
|
|
</div><span class="param"> {{ line }} </span><div>
|
2018-08-14 05:59:21 +00:00
|
|
|
{% continue %}
|
|
|
|
{% endif %}
|
|
|
|
{% if "acl" in line or "option" in line or "server" in line %}
|
|
|
|
{% if "timeout" not in line and "default-server" not in line and "#use_backend" not in line and "#" not in line%}
|
|
|
|
<span class="paramInSec">
|
|
|
|
<span class="numRow">
|
|
|
|
{{ i }}
|
|
|
|
</span>
|
|
|
|
{{ line }}
|
|
|
|
</span><br />
|
|
|
|
{% continue %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2018-08-14 09:54:39 +00:00
|
|
|
{% if line.startswith("#") %}
|
|
|
|
<span class="comment">
|
|
|
|
<span class="numRow">
|
|
|
|
{{ i }}
|
|
|
|
</span>
|
|
|
|
{{ line }}
|
|
|
|
</span><br />
|
|
|
|
{% continue %}
|
2018-08-14 05:59:21 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if line|length > 1 %}
|
|
|
|
<span class="configLine">
|
|
|
|
<span class="numRow">{{ i }}</span>
|
|
|
|
{{ line }}
|
|
|
|
</span><br />
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2018-08-14 09:54:39 +00:00
|
|
|
|
2018-08-14 05:59:21 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% if configver %}
|
|
|
|
<br>
|
|
|
|
<center>
|
2019-09-17 07:18:48 +00:00
|
|
|
<form action="versions.py#conf" method="get">
|
2018-08-14 05:59:21 +00:00
|
|
|
<input type="hidden" value="{{serv}}" name="serv">
|
|
|
|
<input type="hidden" value="{{configver}}" name="configver">
|
|
|
|
<input type="hidden" value="1" name="config">
|
2019-09-17 07:18:48 +00:00
|
|
|
<button type='submit' value='save' name='save' class='btn btn-default'>Just save</button>
|
|
|
|
<button type='submit' value='' name='' class='btn btn-default'>Upload and restart</button>
|
2018-08-14 05:59:21 +00:00
|
|
|
</form>
|
2019-09-22 15:46:26 +00:00
|
|
|
<div class="alert alert-info"><b>Note:</b> If you reconfigure Master server, Slave will reconfigured automatically</div>
|
2018-08-14 05:59:21 +00:00
|
|
|
</center>
|
|
|
|
{% endif %}
|