redactor
This commit is contained in:
9
app.py
9
app.py
@@ -11,7 +11,14 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
app = Flask(__name__)
|
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
|
||||||
|
app = Flask(
|
||||||
|
__name__,
|
||||||
|
static_folder=os.path.join(BASE_DIR, 'static'),
|
||||||
|
static_url_path='/static',
|
||||||
|
template_folder=os.path.join(BASE_DIR, 'templates')
|
||||||
|
)
|
||||||
|
|
||||||
# Uniwersalne ścieżki - sprawdzaj obie
|
# Uniwersalne ścieżki - sprawdzaj obie
|
||||||
CONFIG_DIR_DOCKER = '/etc/haproxy-configurator'
|
CONFIG_DIR_DOCKER = '/etc/haproxy-configurator'
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<a href="/edit" class="menu-link">Edit HAProxy Config</a>
|
<a href="/edit" class="menu-link">Edit HAProxy Config</a>
|
||||||
<a href="/logs" class="menu-link">Security Events</a>
|
<a href="/logs" class="menu-link">Security Events</a>
|
||||||
<a href="/statistics" class="menu-link active">Statistics</a>
|
<a href="/statistics" class="menu-link active">Statistics</a>
|
||||||
<a href="http://{{ request.host.split(':')[0] }}:8080/stats" class="menu-link" target="_blank">HAProxy Stats</a>
|
<a href="http://{{ request.host.split(':')[0] }}:8484/stats" class="menu-link" target="_blank">HAProxy Stats</a>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- Main Content -->
|
<!-- Main Content -->
|
||||||
|
|||||||
Reference in New Issue
Block a user