2018-06-28 05:55:07 +00:00
{% extends "base.html" %}
{% block content %}
2021-07-23 09:40:33 +00:00
{% from 'include/input_macros.html' import input, checkbox, select, copy_to_clipboard %}
2018-06-28 05:55:07 +00:00
< script src = "/inc/users.js" > < / script >
2019-10-25 07:18:57 +00:00
{% include 'include/del_confirm.html' %}
2018-10-03 10:14:57 +00:00
< input type = "hidden" id = "new-group" name = "new-group" value = "{{ group }}" >
< input type = "hidden" id = "new-server-group-add" name = "new-server-group-add" value = "{{ group }}" >
2020-02-20 20:34:50 +00:00
< input type = "hidden" id = "new-sshgroup" name = "new-sshgroup" value = "{{ group }}" >
2020-08-07 15:14:59 +00:00
{{ input('new-telegram-group-add', type='hidden', value=group) }}
2021-08-02 08:19:22 +00:00
{{ input('new-slack-group-add', type='hidden', value=group) }}
2018-06-28 05:55:07 +00:00
< div id = "tabs" >
< ul >
2021-06-02 07:28:07 +00:00
< li > < a href = "#users" title = "Servers: Manage users - Roxy-WI" > Users< / a > < / li >
< li > < a href = "#servers" title = "Servers: Manage servers - Roxy-WI" > Servers< / a > < / li >
< li > < a href = "#ssh" title = "Servers: Manage SSH credentials - Roxy-WI" > SSH credentials< / a > < / li >
< li > < a href = "#checker" title = "Servers: Manage checker - Roxy-WI" > Checker< / a > < / li >
< li > < a href = "#settings" title = "Admin area: Manage Roxy-WI settings - Roxy-WI" > Settings< / a > < / li >
< li > < a href = "#installproxy" title = "Servers: Proxy service installation - Roxy-WI" > Proxy installation< / a > < / li >
< li > < a href = "#installmon" title = "Servers: Monitoring service installation - Roxy-WI" > Monitoring installation< / a > < / li >
< li > < a href = "#geolite2" title = "Servers: GeoLite2 - Roxy-WI" > GeoLite2< / a > < / li >
< li > < a href = "#backup" title = "Servers: Backup configs - Roxy-WI" > Backup< / a > < / li >
2019-10-25 07:18:57 +00:00
{% include 'include/login.html' %}
2018-06-28 05:55:07 +00:00
< / ul >
2020-01-12 16:13:48 +00:00
< ul id = 'browse_histroy' > < / ul >
2018-09-28 16:10:01 +00:00
< div id = "users" >
2020-09-05 06:31:40 +00:00
{% include 'include/admin_users.html' %}
2018-09-28 16:10:01 +00:00
< / div >
2020-08-11 09:54:03 +00:00
2018-06-28 05:55:07 +00:00
< div id = "servers" >
2020-09-04 19:12:31 +00:00
{% include 'include/admin_servers.html' %}
2018-06-28 05:55:07 +00:00
< / div >
< div id = "ssh" >
2020-08-11 09:54:03 +00:00
{% include 'include/admin_ssh.html' %}
2018-06-28 05:55:07 +00:00
< / div >
2018-07-25 05:25:27 +00:00
2021-02-20 07:47:33 +00:00
< div id = "checker" > < / div >
2020-08-11 08:25:39 +00:00
2020-08-10 18:32:44 +00:00
< div id = "settings" >
{% include 'include/admin_settings.html' %}
< / div >
2020-06-01 16:13:28 +00:00
< div id = "installproxy" >
2019-10-21 06:00:16 +00:00
< table class = "overview" >
2020-02-05 08:15:57 +00:00
< caption > < h3 > Install HAProxy< / h3 > < / caption >
2019-10-21 06:00:16 +00:00
< tr class = "overviewHead" >
2019-11-28 16:39:24 +00:00
< td class = "padding10 first-collumn" > Current version< / td >
2022-03-15 09:51:03 +00:00
< td class = "padding10 first-collumn help_cursor" style = "width: 30%;" title = "For Ubuntu Roxy-WI will try to install the latest version from repositories on a server" >
Available Versions (?)
< / td >
2021-10-04 07:40:59 +00:00
< td class = "padding10 first-collumn" style = "width: 20%;" > Server< / td >
2021-11-26 09:11:07 +00:00
< td class = "help_cursor" title = "Install HAProxy service as a Docker container" > Use Docker< / td >
2021-08-15 09:02:12 +00:00
< td > SYN-flood protection< / td >
2019-10-21 06:00:16 +00:00
< td > < / td >
< / tr >
< tr >
2019-11-28 16:39:24 +00:00
< td id = "cur_hap_ver" class = "padding10 first-collumn" >
< / td >
2019-10-21 06:00:16 +00:00
< td class = "padding10 first-collumn" style = "width: 20%;" >
2019-10-25 07:18:57 +00:00
{% set values = dict() %}
2022-03-31 17:21:00 +00:00
{% set values = {'2.0.5-1':'2.0.5-1','2.2.4-1':'2.2.4-1','2.3.0-1':'2.3.0-1','2.3.10-1':'2.3.10-1',
2022-06-02 09:08:37 +00:00
'2.4.0-1':'2.4.0-1','2.4.9-1':'2.4.9-1','2.4.15-1':'2.4.15-1','2.5.1-1':'2.5.1-1','2.6.0-1':'2.6.0-1'} %}
{{ select('hapver', values=values, selected='2.6.0-1', required='required') }}
2019-10-21 06:00:16 +00:00
< / td >
< td class = "padding10 first-collumn" >
< select autofocus required name = "haproxyaddserv" id = "haproxyaddserv" >
2021-08-05 05:46:44 +00:00
< option disabled selected > ------< / option >
2019-10-21 06:00:16 +00:00
{% for select in servers %}
< option value = "{{ select.2 }}" > {{ select.1 }}< / option >
{% endfor %}
< / select >
< / td >
2021-11-26 09:11:07 +00:00
< td style = "padding-left: 25px;" >
{{ checkbox('haproxy_docker', title="Install HAProxy service as a Docker container") }}
2021-10-04 07:40:59 +00:00
< / td >
2021-08-15 09:02:12 +00:00
< td class = "syn-flood-protection-field" >
{{ checkbox('syn_flood', title="Enable SYN-flood protection", checked='checked') }}
2019-10-21 06:00:16 +00:00
< / td >
< td >
2020-08-04 16:40:58 +00:00
< span class = "ui-button ui-widget ui-corner-all" id = "install" title = "Install HAProxy" > Install< / span >
2019-10-21 06:00:16 +00:00
< / td >
< / tr >
< / table >
2020-02-05 08:15:57 +00:00
< table >
2022-04-20 08:08:36 +00:00
< caption > < h3 > Install NGINX< / h3 > < / caption >
2020-02-05 08:15:57 +00:00
< tr class = "overviewHead" >
< td class = "padding10 first-collumn" > Current version< / td >
2020-03-27 21:16:04 +00:00
< td class = "padding10 first-collumn" style = "width: 30%;" > Available Versions< / td >
2021-10-04 07:40:59 +00:00
< td class = "padding10 first-collumn" style = "width: 20%;" > Server< / td >
2022-04-20 08:08:36 +00:00
< td class = "help_cursor" title = "Install NGINX service as a Docker container" > Use Docker< / td >
2021-08-15 09:02:12 +00:00
< td > SYN-flood protection< / td >
2020-02-05 08:15:57 +00:00
< td > < / td >
< / tr >
< tr >
< td id = "cur_nginx_ver" class = "padding10 first-collumn" >
< / td >
< td class = "padding10 first-collumn" style = "width: 20%;" >
2022-04-20 08:08:36 +00:00
Roxy-WI will try to install the latest NGINX version from an official NGINX repository
2020-02-05 08:15:57 +00:00
< / td >
< td class = "padding10 first-collumn" >
< select autofocus required name = "nginxaddserv" id = "nginxaddserv" >
2021-08-05 05:46:44 +00:00
< option disabled selected > ------< / option >
2020-02-05 08:15:57 +00:00
{% for select in servers %}
< option value = "{{ select.2 }}" > {{ select.1 }}< / option >
{% endfor %}
< / select >
< / td >
2021-11-26 09:11:07 +00:00
< td style = "padding-left: 25px;" >
2022-04-20 08:08:36 +00:00
{{ checkbox('nginx_docker', title="Install NGINX service as a Docker container") }}
2021-10-04 07:40:59 +00:00
< / td >
2021-08-15 09:02:12 +00:00
< td class = "syn-flood-protection-field" >
{{ checkbox('nginx_syn_flood', title="Enable SYN-flood protection", checked='checked') }}
2020-02-05 08:15:57 +00:00
< / td >
< td >
2022-04-20 08:08:36 +00:00
< span class = "ui-button ui-widget ui-corner-all" id = "nginx_install" title = "Install NGINX" > Install< / span >
2020-02-05 08:15:57 +00:00
< / td >
< / tr >
< / table >
2020-06-01 16:13:28 +00:00
< div id = "ajax" > < / div >
< / div >
2020-08-08 20:54:53 +00:00
2020-06-01 16:13:28 +00:00
< div id = "installmon" >
2020-08-08 20:54:53 +00:00
{% include 'include/mon_installation.html' %}
2019-10-21 06:00:16 +00:00
< / div >
2020-08-08 06:26:43 +00:00
2021-01-09 15:42:08 +00:00
< div id = "geolite2" >
< table >
< caption > < h3 > Install GeoLite2< / h3 > < / caption >
< tr class = "overviewHead" >
< td class = "padding10 first-collumn" > Server< / td >
< td class = "padding10 first-collumn" style = "width: 30%;" > Current installation< / td >
2021-06-02 07:28:07 +00:00
< td class = "" style = "width: 30%;" title = "GeoLite2 DB is released every Tuesday. Should Roxy-WI update it?" > Updating< / td >
2021-01-09 15:42:08 +00:00
< td > < / td >
< td > < / td >
< / tr >
< tr >
< td class = "padding10 first-collumn" >
< select autofocus required name = "geoipserv" id = "geoipserv" >
2021-08-05 05:46:44 +00:00
< option disabled selected > ------< / option >
2021-01-09 15:42:08 +00:00
{% for select in servers %}
< option value = "{{ select.2 }}" > {{ select.1 }}< / option >
{% endfor %}
< / select >
< / td >
< td id = "cur_geoip" class = "padding10" > < / td >
< td class = "checkbox" >
{{ checkbox('updating_geoip', title="Update the database?", checked='checked') }}
< / td >
< td >
< span class = "ui-button ui-widget ui-corner-all" id = "geoip_install" title = "Install GeoLite2" style = "display: none;" > Install< / span >
< / td >
< / tr >
< / table >
< div id = "ajax-geoip" > < / div >
2021-09-01 13:40:42 +00:00
< div class = "add-note alert addName alert-info" style = "width: inherit; margin-right: 15px; margin-bottom: 15px;" >
2022-07-30 17:00:36 +00:00
Read the "how to" in this < a href = "https://roxy-wi.org/howto/geoip" title = "GeoLite2 description" target = "_blank" > article< / a >
2021-01-09 15:42:08 +00:00
< / div >
< table style = "min-width: 40%;" >
< tr class = "overviewHead" >
< th colspan = 13 style = "background-color: #d1ecf1; padding: 10px;" >
< span id = "table_metrics_head" style = "position: absolute;margin-left: 43%;" > Country codes< / span >
2021-06-21 05:46:53 +00:00
< span id = "show_country_codes" class = "plus switcher_table_metric" title = "Show country codes" > < / span >
2021-01-09 15:42:08 +00:00
< span id = "hide_country_codes" class = "minus switcher_table_metric" title = "Hide country codes" style = "display: none;" > < / span >
< / th >
< / tr >
< / table >
< div id = "geoip_country_codes" style = "display: none;" >
{% for code in geoip_country_codes %}
2021-08-02 08:19:22 +00:00
< div class = "geoip_country_code" id = "{{code.code}}" > {{code.code}} ({{code.name}})< / div >
2021-01-09 15:42:08 +00:00
{% endfor %}
< / div >
< / div >
2020-01-11 21:16:27 +00:00
< div id = "backup" >
2020-08-08 06:26:43 +00:00
{% include 'include/admin_backup.html' %}
2018-07-27 06:46:50 +00:00
< / div >
< / div >
2020-08-07 15:14:59 +00:00
{% include 'include/admins_dialogs.html' %}
2019-10-25 07:18:57 +00:00
{% include 'include/change_pass_form.html' %}
2018-07-27 06:46:50 +00:00
< script >
2019-10-01 05:35:05 +00:00
$( function() {
{% for user in users %}
$("#role-{{user.0}}" ).selectmenu({
width: 100
});
{% endfor %}
{% for server in servers %}
$("#slavefor-{{server.0}}" ).selectmenu({
width: 130
});
$("#credentials-{{server.0}}" ).selectmenu({
width: 150
});
{% endfor %}
2020-01-11 21:16:27 +00:00
{% for ssh in sshs %}
$("#sshgroup-{{ ssh.0}}" ).selectmenu({
width: 150
});
{% endfor %}
2021-08-02 08:19:22 +00:00
{% for server in backups %}
$("#backup-time-{{ server.id}}" ).selectmenu({
width: 100
});
$("#backup-type-{{server.id}}" ).selectmenu({
width: 130
});
$("#backup-credentials-{{server.id}}" ).selectmenu({
width: 150
});
{% endfor %}
2019-10-01 05:35:05 +00:00
});
2018-07-27 06:46:50 +00:00
< / script >
2021-01-12 05:05:53 +00:00
< link href = "/inc/servers.css" rel = "stylesheet" / >
2019-12-04 13:38:07 +00:00
{% endblock %}