Skip to content

Fix nginx error related to passthrough TLS - #208

Merged
Andrei Kvapil (kvaps) merged 1 commit into
cozystack:mainfrom
kingdonb:fix-nginx-error
Jul 8, 2024
Merged

Andrei Kvapil (kvaps) merged 1 commit into
cozystack:mainfrom
kingdonb:fix-nginx-error

Conversation

@kingdonb

Copy link
Copy Markdown
Member

I don't understand why "true" value isn't accepted here, but I have seen this before. The --enable-ssl-passthrough parameter is not supposed to accept any value, it's a stand-alone argument.

With this change I get my traffic appropriately passed through to backend ingress on a kubevirt cluster that enabled TLS

Without it (the change is made on the addon ingress, which is very strange, because that one isn't even configured to use a passthrough annotation... the root ingress controller doesn't seem to care) I get this error:

400 Bad Request
The plain HTTP request was sent to HTTPS port

nginx

I don't understand why "true" value isn't accepted here, but I have seen
this before. The `--enable-ssl-passthrough` parameter is not supposed to
accept any value, it's a stand-alone argument.

With this change I get my traffic appropriately passed through to
backend ingress on a kubevirt cluster that enabled TLS

Without it (on the addon ingress, which is very strange, because that
one isn't even configured to use a passthrough annotation...) I get this
error:

> 400 Bad Request
> The plain HTTP request was sent to HTTPS port
> ---
> nginx

Signed-off-by: Kingdon Barrett <[email protected]>

@kvaps Andrei Kvapil (kvaps) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kvaps
Andrei Kvapil (kvaps) merged commit 8664d57 into cozystack:main Jul 8, 2024
@kingdonb
Kingdon Barrett (kingdonb) deleted the fix-nginx-error branch July 8, 2024 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants