diff --git a/services/TS29222_CAPIF_API_Invoker_Management_API/requirements.txt b/services/TS29222_CAPIF_API_Invoker_Management_API/requirements.txt index c28e5fb691113e5d9910216f9dd62b0aae387314..9e154c601a02dae73ec9f9b5513bcc83ccdb1e35 100644 --- a/services/TS29222_CAPIF_API_Invoker_Management_API/requirements.txt +++ b/services/TS29222_CAPIF_API_Invoker_Management_API/requirements.txt @@ -21,5 +21,5 @@ opentelemetry-sdk == 1.20.0 flask_executor == 1.0.0 Flask-APScheduler == 1.13.1 werkzeug == 3.0.6 -gunicorn == 22.0.0 +gunicorn == 23.0.0 packaging == 24.0 \ No newline at end of file diff --git a/services/TS29222_CAPIF_API_Provider_Management_API/requirements.txt b/services/TS29222_CAPIF_API_Provider_Management_API/requirements.txt index 0b5ec10e2e2b3f5deb197743248e0fbd8d8bd042..9d79f0840b3cc87c0a317f968557882708be9294 100644 --- a/services/TS29222_CAPIF_API_Provider_Management_API/requirements.txt +++ b/services/TS29222_CAPIF_API_Provider_Management_API/requirements.txt @@ -19,5 +19,5 @@ opentelemetry-api == 1.19.0 opentelemetry-sdk == 1.19.0 flask_executor == 1.0.0 werkzeug == 3.0.4 -gunicorn == 22.0.0 +gunicorn == 23.0.0 packaging == 24.0 diff --git a/services/TS29222_CAPIF_Access_Control_Policy_API/requirements.txt b/services/TS29222_CAPIF_Access_Control_Policy_API/requirements.txt index e38f272cebb4b75f3862a7b01ee49d2f3cc3be76..9524b428474a65994a73415e09f64870c3aa64fe 100644 --- a/services/TS29222_CAPIF_Access_Control_Policy_API/requirements.txt +++ b/services/TS29222_CAPIF_Access_Control_Policy_API/requirements.txt @@ -20,5 +20,5 @@ opentelemetry-sdk == 1.19.0 flask_executor == 1.0.0 Flask-APScheduler == 1.13.1 Flask-Script == 2.0.6 -gunicorn == 22.0.0 +gunicorn == 23.0.0 packaging == 24.0 \ No newline at end of file diff --git a/services/TS29222_CAPIF_Auditing_API/requirements.txt b/services/TS29222_CAPIF_Auditing_API/requirements.txt index da3a4c516c3d71cc4160bc0170a572a7818ef814..40ed48bc91701df99195001fb4fa7b034ce3485b 100644 --- a/services/TS29222_CAPIF_Auditing_API/requirements.txt +++ b/services/TS29222_CAPIF_Auditing_API/requirements.txt @@ -20,5 +20,5 @@ opentelemetry-sdk == 1.19.0 flask_executor == 1.0.0 werkzeug == 3.0.4 pyopenssl == 24.1.0 -gunicorn == 22.0.0 +gunicorn == 23.0.0 packaging == 24.0 diff --git a/services/TS29222_CAPIF_Discover_Service_API/requirements.txt b/services/TS29222_CAPIF_Discover_Service_API/requirements.txt index 32a15be25ab0afc062f029940f58f84ccb466548..04ff0c7747c9fdcea4fefc1f2f5d0b37eea3cd9e 100644 --- a/services/TS29222_CAPIF_Discover_Service_API/requirements.txt +++ b/services/TS29222_CAPIF_Discover_Service_API/requirements.txt @@ -20,5 +20,5 @@ opentelemetry-api == 1.19.0 opentelemetry-sdk == 1.19.0 flask_executor == 1.0.0 werkzeug == 3.0.4 -gunicorn == 22.0.0 +gunicorn == 23.0.0 packaging == 24.0 diff --git a/services/TS29222_CAPIF_Events_API/requirements.txt b/services/TS29222_CAPIF_Events_API/requirements.txt index bfe2e17c53647b77962f50b9885fef525393c33f..1edc40a9b8d68f47e5f55a18401e3657c766a2df 100644 --- a/services/TS29222_CAPIF_Events_API/requirements.txt +++ b/services/TS29222_CAPIF_Events_API/requirements.txt @@ -24,5 +24,5 @@ aiohttp == 3.10.5 async-timeout == 4.0.3 werkzeug == 3.0.4 pyopenssl == 24.2.1 -gunicorn == 22.0.0 +gunicorn == 23.0.0 packaging == 24.0 \ No newline at end of file diff --git a/services/TS29222_CAPIF_Logging_API_Invocation_API/requirements.txt b/services/TS29222_CAPIF_Logging_API_Invocation_API/requirements.txt index e5640804e1111309cbc5e90caf086b44916ed8e2..7abd46099797a5916f493661532e243c34571089 100644 --- a/services/TS29222_CAPIF_Logging_API_Invocation_API/requirements.txt +++ b/services/TS29222_CAPIF_Logging_API_Invocation_API/requirements.txt @@ -21,5 +21,5 @@ opentelemetry-sdk == 1.19.0 flask_executor == 1.0.0 werkzeug == 3.0.4 pyopenssl == 24.1.0 -gunicorn == 22.0.0 +gunicorn == 23.0.0 packaging == 24.0 diff --git a/services/TS29222_CAPIF_Publish_Service_API/requirements.txt b/services/TS29222_CAPIF_Publish_Service_API/requirements.txt index 0496b8e4b3591b45b7f93c1b60ba8c10807f6e5e..73be6c5fc1a99d4511cb803ed2df4131fe2f5404 100644 --- a/services/TS29222_CAPIF_Publish_Service_API/requirements.txt +++ b/services/TS29222_CAPIF_Publish_Service_API/requirements.txt @@ -20,6 +20,6 @@ opentelemetry-sdk == 1.17.0 flask_executor == 1.0.0 Flask-APScheduler == 1.13.1 werkzeug == 3.0.4 -gunicorn == 22.0.0 +gunicorn == 23.0.0 packaging == 24.0 diff --git a/services/TS29222_CAPIF_Routing_Info_API/requirements.txt b/services/TS29222_CAPIF_Routing_Info_API/requirements.txt index 0ecdd1f3b7931f42166a8e8cc214755a04462e6c..9c1909386d58da9be7f1452fd8d40789eeb58184 100644 --- a/services/TS29222_CAPIF_Routing_Info_API/requirements.txt +++ b/services/TS29222_CAPIF_Routing_Info_API/requirements.txt @@ -4,5 +4,5 @@ python_dateutil >= 2.6.0 setuptools == 74.0.0 Flask == 3.0.3 werkzeug == 3.0.4 -gunicorn == 22.0.0 +gunicorn == 23.0.0 packaging == 24.0 diff --git a/services/TS29222_CAPIF_Security_API/requirements.txt b/services/TS29222_CAPIF_Security_API/requirements.txt index b3fd4f79e3b770f780fc9feba3d110657f189e87..cfd57783206b9456703ab7ca54ab729b2ac92428 100644 --- a/services/TS29222_CAPIF_Security_API/requirements.txt +++ b/services/TS29222_CAPIF_Security_API/requirements.txt @@ -21,5 +21,5 @@ opentelemetry-sdk == 1.19.0 Flask-APScheduler == 1.13.1 flask_executor == 1.0.0 werkzeug == 3.0.4 -gunicorn == 22.0.0 +gunicorn == 23.0.0 packaging == 24.0 \ No newline at end of file diff --git a/services/helper/helper_service/app.py b/services/helper/helper_service/app.py index f43ab73b4aefb46810ec82ef86594657f0234d42..8525aa1ab09f629398313a20c80fd61164626e4f 100644 --- a/services/helper/helper_service/app.py +++ b/services/helper/helper_service/app.py @@ -1,13 +1,13 @@ import json import logging import os - import requests from config import Config from controllers.helper_controller import helper_routes from db.db import MongoDatabse from flask import Flask from OpenSSL.crypto import FILETYPE_PEM, TYPE_RSA, PKey, X509Req, dump_certificate_request, dump_privatekey +from asgiref.wsgi import WsgiToAsgi app = Flask(__name__) config = Config().get_config() @@ -80,3 +80,4 @@ cert_file.close() app.register_blueprint(helper_routes) app.logger.setLevel(numeric_level) +asgi_app = WsgiToAsgi(app) \ No newline at end of file diff --git a/services/helper/helper_service/wsgi.py b/services/helper/helper_service/wsgi.py index 6026b0fa96078634d3455ab93d71dcdc78774276..55e6ab2d5441cbd2ab49f75d4ec3d670361820f4 100644 --- a/services/helper/helper_service/wsgi.py +++ b/services/helper/helper_service/wsgi.py @@ -1,4 +1,4 @@ -from app import app +from app import asgi_app if __name__ == "__main__": - app.run() + asgi_app.run() diff --git a/services/helper/prepare_helper.sh b/services/helper/prepare_helper.sh index d4297f6484ddfe6ee867338b7d19b7eb97fc4b7d..3fe4988c2a0c3c5c3acbd545e7274029a3f2028c 100644 --- a/services/helper/prepare_helper.sh +++ b/services/helper/prepare_helper.sh @@ -1,5 +1,5 @@ #!/bin/bash -gunicorn --bind 0.0.0.0:8080 \ - --chdir /usr/src/app/helper_service wsgi:app \ No newline at end of file +gunicorn -k uvicorn.workers.UvicornWorker --bind 0.0.0.0:8080 \ + --chdir /usr/src/app/helper_service wsgi:asgi_app \ No newline at end of file diff --git a/services/helper/requirements.txt b/services/helper/requirements.txt index 48b0fba6161e185929637b7288143660257aa8b0..14644ee7471885fbfa74eb2c23a6d0fe698e7709 100644 --- a/services/helper/requirements.txt +++ b/services/helper/requirements.txt @@ -6,5 +6,7 @@ flask_jwt_extended == 4.6.0 pyopenssl == 24.1.0 pyyaml == 6.0.1 requests == 2.32.2 -gunicorn == 22.0.0 +gunicorn == 23.0.0 +uvicorn == 0.34.2 +asgiref == 3.8.1 packaging == 24.0 diff --git a/services/register/requirements.txt b/services/register/requirements.txt index 1c1cb217ddd6a995353a26853f7df53bd2148e6b..15c8c0831b85a6aa18164943acb4515a0aa2deec 100644 --- a/services/register/requirements.txt +++ b/services/register/requirements.txt @@ -8,5 +8,5 @@ pyyaml == 6.0.1 requests == 2.32.2 bcrypt == 4.0.1 flask_httpauth == 4.8.0 -gunicorn == 22.0.0 +gunicorn == 23.0.0 packaging == 24.0