Switched to MySQL database

This commit is contained in:
2025-05-30 22:58:35 +00:00
parent 34e1917abd
commit a04612005f
10 changed files with 195 additions and 239 deletions
+7 -1
View File
@@ -8,8 +8,14 @@ os.chdir(os.path.dirname(os.path.abspath(__file__)))
app = Flask(__name__)
app.config['SECRET_KEY'] = '41TbN7v5peFLZPrdwSCc64J3mjmiUk5fkVWsmb2m'
app.config['MYSQL_HOST'] = '10.10.2.27'
app.config['MYSQL_USER'] = 'ipam'
app.config['MYSQL_PASSWORD'] = 'WXPmo05sGCfjGe'
app.config['MYSQL_DATABASE'] = 'ipam'
register_routes(app)
if __name__ == '__main__':
init_db()
with app.app_context():
init_db(app)
app.run(host='0.0.0.0', port=5000)