mirror of
https://github.com/TakeusV1/flask_ipam.git
synced 2026-10-14 01:15:33 +02:00
26 lines
766 B
Python
26 lines
766 B
Python
##########################################################
|
|
############# CONFIGURATION FILE | Flask IPAM ############
|
|
|
|
## Flask Server (For DEV)
|
|
app_ip = '127.0.0.1'
|
|
app_port = 80
|
|
app_debug = True
|
|
app_maintenance = False
|
|
|
|
app_name = 'takeus-ipam'
|
|
app_version = 'V1.2'
|
|
app_release_date = '02/2025'
|
|
app_url = "http://0.0.0.0"
|
|
|
|
class Configuration:
|
|
# openssl rand -hex 32
|
|
SECRET_KEY = '619b2920234c8c472b2a7121c82a5d62ea86a083dc00e2bc9b09b695f00641ea'
|
|
# DB CONFIG
|
|
SQLALCHEMY_DATABASE_URI = 'sqlite:///database.db'
|
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
|
SQLALCHEMY_ENGINE_OPTIONS = {"pool_pre_ping": True}
|
|
# CK CONFIG
|
|
SESSION_COOKIE_SECURE = False # SSL REQUIRED
|
|
SESSION_COOKIE_HTTPONLY = True
|
|
SESSION_COOKIE_SAMESITE = 'Lax'
|