config-Datei erstellt
This commit is contained in:
1 parent
f41a13e483
commit
65089447b5
5 files changed
+10
-5
No files matched your search
@@ -0,0 +1,2 @@
|
|||||||
|
config.py
|
||||||
|
api-call
|
||||||
Binary file not shown.
@@ -8,13 +8,14 @@ from flask import Flask, render_template_string, request, session, redirect, url
|
|||||||
from flask_cors import CORS
|
from flask_cors import CORS
|
||||||
from playwright.async_api import async_playwright
|
from playwright.async_api import async_playwright
|
||||||
import requests
|
import requests
|
||||||
|
import config
|
||||||
|
|
||||||
# Konfiguration
|
# Konfiguration
|
||||||
PASSWORD = 'toniessindteuer'
|
PASSWORD = config.PASSWORD
|
||||||
BASE_DIR = '/mnt/NAS/Toniebox/'
|
BASE_DIR = config.BASE_DIR
|
||||||
|
|
||||||
app = Flask(__name__)
|
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="*")
|
CORS(app, supports_credentials=True, allow_headers="*")
|
||||||
|
|
||||||
|
|
||||||
@@ -672,4 +673,4 @@ def api_upload_to_tonie():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(host='0.0.0.0', port=5005)
|
app.run(host='0.0.0.0', port=5005)
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
SECRET_KEY = 'super-secret-key'
|
||||||
|
BASE_DIR = '/mnt/Hoerbuecher/'
|
||||||
|
PASSWORD = 'supergeheimespasswort'
|
||||||
Reference in new issue
Block a user