Token in configuration

This commit is contained in:
CHIEFSOFT\ameye
2024-12-14 06:11:57 -05:00
parent e51f2a3a66
commit fe778085fb
2 changed files with 8 additions and 5 deletions
+6 -4
View File
@@ -30,20 +30,22 @@ app = Flask(__name__)
CORS(app)
app.config.from_object("project.config.Config")
db = SQLAlchemy(app)
app.config['SECRET_KEY'] ='thisisourwondefulkey'
#jwt_secret = os.getenv("JWT_SECRET")
app.config['SECRET_KEY'] = os.getenv("JWT_SECRET") #'thisisourwondefulkey'
#print( "aaaa-bbbb--ccccc" )
#print( jwt_secret )
template = {
"swagger": "2.0",
"info": {
"title": "MERMS Core API",
"description": "This API was developed using Python Flask, which provides an interface for producing and consuming messages with Apache Kafka topics via HTTP endpoints.",
"description": "This API was developed using Python Flask, which provides an interface for core MERMS endpoints.",
"version": "1.0"
}
}
app.config['SWAGGER'] = {
'title': 'Flask Kafka API',
'title': 'MERMS API',
'uiversion': 2,
'template': './resources/flasgger/swagger_ui.html'
}