This commit is contained in:
Mateusz Gruszczyński
2025-11-01 21:30:28 +01:00
parent 0a37ba36d9
commit ef4f9de301
2 changed files with 9 additions and 2 deletions

9
app.py
View File

@@ -11,7 +11,14 @@ import os
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
CONFIG_DIR_DOCKER = '/etc/haproxy-configurator'