mirror of
https://github.com/TakeusV1/flask_ipam.git
synced 2026-10-14 01:15:33 +02:00
1 file changed
+6
-3
+6
-3
@@ -1,6 +1,8 @@
|
|||||||
##########################################################
|
##########################################################
|
||||||
############# CONFIGURATION FILE | Flask IPAM ############
|
############# CONFIGURATION FILE | Flask IPAM ############
|
||||||
|
|
||||||
|
import random, string
|
||||||
|
|
||||||
## Flask Server (For DEV)
|
## Flask Server (For DEV)
|
||||||
app_ip = '127.0.0.1'
|
app_ip = '127.0.0.1'
|
||||||
app_port = 80
|
app_port = 80
|
||||||
@@ -8,13 +10,14 @@ app_debug = True
|
|||||||
app_maintenance = False
|
app_maintenance = False
|
||||||
|
|
||||||
app_name = 'takeus-ipam'
|
app_name = 'takeus-ipam'
|
||||||
app_version = 'V1.2'
|
app_version = 'V1.3'
|
||||||
app_release_date = '02/2025'
|
app_release_date = '02/2025'
|
||||||
app_url = "http://0.0.0.0"
|
app_url = "http://0.0.0.0"
|
||||||
|
|
||||||
class Configuration:
|
class Configuration:
|
||||||
# openssl rand -hex 32
|
# replace SECRET_KEY with value from "openssl rand -hex 32" or similar for STATIC sessions
|
||||||
SECRET_KEY = '619b2920234c8c472b2a7121c82a5d62ea86a083dc00e2bc9b09b695f00641ea'
|
# With actual configuration, every application restart, user have to re-login...
|
||||||
|
SECRET_KEY = ''.join(random.SystemRandom().choice(string.ascii_uppercase + string.digits) for _ in range(32))
|
||||||
# DB CONFIG
|
# DB CONFIG
|
||||||
SQLALCHEMY_DATABASE_URI = 'sqlite:///database.db'
|
SQLALCHEMY_DATABASE_URI = 'sqlite:///database.db'
|
||||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||||
|
|||||||
Reference in new issue
Block a user