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
+2 -1
View File
@@ -4,4 +4,5 @@ DATABASE_URL=postgresql://merms_panel:merms_panel@10.20.30.60:5432/merms_panel
SQL_HOST=10.20.30.60
SQL_PORT=5432
DATABASE=postgres
APP_FOLDER=/usr/src/app
APP_FOLDER=/usr/src/app
JWT_SECRET=dce6bd64f7d7101de4fed7cfc185a12851611a79bd60bbfdcc5b414b85f1fdb75e0905691c2a77ce94a7351b261fab4e183e17731ed40089f68f7290a793119f285d8ec7902d248ce15e8b1d4996ebacf5e7bcb06a38ac7ce0736f17d5c2895a499661d27095ac20aa174f9af2fba9a849dd2e6fd0aad8aa7e1ecc030c11eb8dc8dcb71d32233de3530d04f85918b9582f8b02587a7350aa34232825d4831707c7c5775026f3fdd92c5df555e6ff8b785525922709830206bbd49c371fb6e16bcab01ffccaf904108bb9789c578bce6afbb33bc77960051e680b2428d1f026473e71ef0f9997b2a6dc496e1c40509a1d289e3ff8b384c2d49e1d7719f9f4aaa1
+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'
}