Rapportsystem API - of D03N
Hovedprosjekt FiV Programmering 20-24
Loading...
Searching...
No Matches
secret.py
Go to the documentation of this file.
1# IP address of the host where the database is located
2host_IP = 'YOUR IP HERE'
3
4# Username to access the database server
5host_user = 'YOUR ADMIN USER HERE'
6
7# Password for the database server
8host_password = 'YOUR ADMIN PASSWORD HERE'
9
10# The name of the main database (may be None if not specified)
11host_database = None
12
13# The name of the database containing user information
14host_userdatabase = "users"
15
16# The name of the table storing user information
17host_users_table = "user_info"
18
19# The name of the table storing session tokens
20host_session_table = "tokens"
21
22def setConfig(app):
23 """
24 Sets the configuration for the Flask application.
25
26 Args:
27 app: The Flask application object.
28
29 Returns:
30 int: Always returns 1.
31 """
32 # Set the secret key for the application
33 app.config['SECRET_KEY'] = 'TESTKEY'
34
35 # Set the JWT secret key for the application
36 app.config['JWT_SECRET_KEY'] = 'SUPER_SECRET_KEY'
37
38 return 1
setConfig(app)
Definition secret.py:22