From 65089447b5b75e482f2de33d8b515c5f2fefb637 Mon Sep 17 00:00:00 2001 From: sandro Date: Mon, 31 Aug 2026 21:30:33 +0200 Subject: [PATCH] config-Datei erstellt --- .gitignore | 2 ++ __pycache__/config.cpython-312.pyc | Bin 0 -> 256 bytes api-call | 1 - app.py | 9 +++++---- config.example.py | 3 +++ 5 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 .gitignore create mode 100644 __pycache__/config.cpython-312.pyc delete mode 100644 api-call create mode 100644 config.example.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f35db13 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +config.py +api-call diff --git a/__pycache__/config.cpython-312.pyc b/__pycache__/config.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ebe9efb7bfd8a2448934d86d0e48da06993c7a5d GIT binary patch literal 256 zcmX@j%ge<81kP8dW@P~B#~=<2FhUuh1%Qm{3@Hpz3@MCJj44b}OqI-WQx zi~Ka1Z*c{?ItRIi#Cy9&-r{g_40ero@eI1f5#Sgc9PS_FvXbF5$PvHP^fU5vQ}v4z z^HPfP^#h9Xvr@B5QuQGQ>L=&trDdk;6;%G>u*uC&Da}c>E8+xd19_lW1W0^fW@Kc% X!K>N8b%RHtf#U|ZOe04TJ5T}uy%$L) literal 0 HcmV?d00001 diff --git a/api-call b/api-call deleted file mode 100644 index 1eb26bb..0000000 --- a/api-call +++ /dev/null @@ -1 +0,0 @@ -http://192.168.189.118:8000/toniecloud/gettags diff --git a/app.py b/app.py index c0b9407..bb42c19 100644 --- a/app.py +++ b/app.py @@ -8,13 +8,14 @@ from flask import Flask, render_template_string, request, session, redirect, url from flask_cors import CORS from playwright.async_api import async_playwright import requests +import config # Konfiguration -PASSWORD = 'toniessindteuer' -BASE_DIR = '/mnt/NAS/Toniebox/' +PASSWORD = config.PASSWORD +BASE_DIR = config.BASE_DIR app = Flask(__name__) -app.config['SECRET_KEY'] = 'tonieflix-super-secret-key' +app.config['SECRET_KEY'] = config.SECRET_KEY CORS(app, supports_credentials=True, allow_headers="*") @@ -672,4 +673,4 @@ def api_upload_to_tonie(): if __name__ == '__main__': - app.run(host='0.0.0.0', port=5005) \ No newline at end of file + app.run(host='0.0.0.0', port=5005) diff --git a/config.example.py b/config.example.py new file mode 100644 index 0000000..348adab --- /dev/null +++ b/config.example.py @@ -0,0 +1,3 @@ +SECRET_KEY = 'super-secret-key' +BASE_DIR = '/mnt/Hoerbuecher/' +PASSWORD = 'supergeheimespasswort'