Skip to content

Commit

Permalink
Disable tancredi http2https (#103)
Browse files Browse the repository at this point in the history
* Disable tancredi http2https

Tancredi API are called by nethcti-server or by phones, both calls it in HTTP and shouldn't be redirected to HTTPS because 
- nethcti-server is local
- if phones use HTTP is because they couldn't use HTTPS

* Update imageroot/actions/configure-module/30traefik

Co-authored-by: Matteo Valentini <[email protected]>

* Update imageroot/actions/configure-module/30traefik

Co-authored-by: Matteo Valentini <[email protected]>

---------

Co-authored-by: Matteo Valentini <[email protected]>
  • Loading branch information
Stell0 and Amygos authored Jan 11, 2024
1 parent 8d1e53f commit 94f6e58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imageroot/actions/configure-module/30traefik
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ response = agent.tasks.run(
data={
'instance': os.environ['MODULE_ID'] + '-tancredi',
'url': 'http://127.0.0.1:' + os.environ["TANCREDIPORT"] + '/tancredi',
'http2https': os.environ["TRAEFIK_HTTP2HTTPS"] == "true",
'http2https': False,
'lets_encrypt': lets_encrypt,
'host': os.environ["NETHVOICE_HOST"],
'path': '/tancredi',
Expand All @@ -80,7 +80,7 @@ response = agent.tasks.run(
data={
'instance': os.environ['MODULE_ID'] + '-provisioning',
'url': 'http://127.0.0.1:' + os.environ["TANCREDIPORT"] + '/provisioning',
'http2https': os.environ["TRAEFIK_HTTP2HTTPS"] == "true",
'http2https': False,
'lets_encrypt': lets_encrypt,
'host': os.environ["NETHVOICE_HOST"],
'path': '/provisioning',
Expand Down

0 comments on commit 94f6e58

Please sign in to comment.