diff --git a/.env b/.env index 6f1b8ad..e5826a0 100644 --- a/.env +++ b/.env @@ -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 \ No newline at end of file +APP_FOLDER=/usr/src/app +JWT_SECRET=dce6bd64f7d7101de4fed7cfc185a12851611a79bd60bbfdcc5b414b85f1fdb75e0905691c2a77ce94a7351b261fab4e183e17731ed40089f68f7290a793119f285d8ec7902d248ce15e8b1d4996ebacf5e7bcb06a38ac7ce0736f17d5c2895a499661d27095ac20aa174f9af2fba9a849dd2e6fd0aad8aa7e1ecc030c11eb8dc8dcb71d32233de3530d04f85918b9582f8b02587a7350aa34232825d4831707c7c5775026f3fdd92c5df555e6ff8b785525922709830206bbd49c371fb6e16bcab01ffccaf904108bb9789c578bce6afbb33bc77960051e680b2428d1f026473e71ef0f9997b2a6dc496e1c40509a1d289e3ff8b384c2d49e1d7719f9f4aaa1 \ No newline at end of file diff --git a/services/web/project/__init__.py b/services/web/project/__init__.py index c95dcf0..8cb5ce5 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -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' }