Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run TE Docker Container behind https #203

Open
justb4 opened this issue Mar 20, 2023 · 1 comment
Open

Cannot run TE Docker Container behind https #203

justb4 opened this issue Mar 20, 2023 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@justb4
Copy link

justb4 commented Mar 20, 2023

Describe the bug
Trying to run the latest Docker image ogccite/ets-ogcapi-features10 on a subpath behind an HTTPS proxy (Traefik) that handles routing and domain SSL Cert. The webapp can be accessed using the https:// URL and subpath, login is ok, start Session is ok, but when trying to run 'Start button) the test-suite, modern (Brave, Safari or other) browsers refuse to submit the internal HTML Form, complaining that the Form's POST attempts to access an http:// protocol.
Problem is "mixed-content", looks like some base-url setting within the JSP.

To Reproduce
Steps to reproduce the behavior:

  1. Existing setup with Traefik frontend, several backend services like pygeoapi
  2. Via docker(-compose) Traefik labeling routing (Ok)
  3. Open https:///teamengine/ in browser is ok, routing works
  4. TE Login and start Session is ok
  5. 'Start Tests' with button 'Start' gives browser Console error, also warning when page loads: http access in form submit
  6. (Also the TE cannot be configured to use any other subpath than '/teamengine').

It works (with Traefik) when using e.g. the full IP address with http and routing to port 8080 or standalone.

Expected behavior
Expecting content and form submits to follow main page protocol http or https ,like when using // form i.s.o. of explicit http:// or https://.

Screenshots
image
So this happens on this screen when pushing the "Start" button here.

Additional context
Not clear what the cause is, maybe some base URL setting.

@dstenger
Copy link
Contributor

Thank you for reporting.

The reported issue seems to be related to opengeospatial/teamengine#501 and opengeospatial/teamengine#418.

Can you please try to enable HSTS in proxy configuration as documented at the bottom of https://opengeospatial.github.io/teamengine/installation.html?

@dstenger dstenger added the question Further information is requested label Mar 22, 2023
@dstenger dstenger added this to CITE Aug 1, 2024
@dstenger dstenger moved this to Waiting in CITE Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: Waiting
Development

No branches or pull requests

2 participants