RedHatQE / notify-service

Notify service with multiple supported target
MIT License
9 stars 5 forks source link

Fix CORS server domain list #32

Closed waynesun09 closed 2 years ago

waynesun09 commented 2 years ago

The CORS require server host url explicitly set, also the port need be included.

For local deployment, the port need be added to the server url, while with DEFAULT openshift edge tls termination, the port should not be added.

So add new TARGET and SSL_ENABLED parameters to identify the deploy target env and tls status, and update the server list accordingly.

By default with Helm chart deploy, the value with TARGET and TLS_ENABLED don't need be set in the Helm chart as default in the app/core/config.py are set with:

TARGET: openshift TLS_ENABLED: true

Signed-off-by: Wayne Sun gsun@redhat.com

waynesun09 commented 2 years ago

With the server url parsed accordingly with local and openshift deployment, this fixes the url issue in:

https://github.com/waynesun09/notify-service/issues/23