Issues with HTTPS Requests and Routes in APISIX Configuration (Docker Setup) #11966
FaaSioFlexService
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I am currently working on setting up APISIX with Docker for handling HTTP and HTTPS requests, but I’m facing a few issues with serving HTTPS requests and routes defined in my routes.yaml. Here’s a breakdown of my setup and the issues I’m encountering:
Dockerfile_etcd:
Dockerfile:
config. yaml :
routes. yaml:
script shesll to setup docker is:
Problem:
HTTPS Requests Not Working: Despite setting up SSL certificates, I am unable to serve HTTPS requests on port 9443. The requests just time out or fail.
Routes Not Being Executed: The routes defined in my routes.yaml are not being triggered. Specifically, requests to /api/v1/ do not get routed properly to the upstream services defined in routes.yaml.
Things I’ve Tried:
Double-checking the paths for certificates and ensuring they are being copied correctly in the Dockerfile.
Confirming that the config.yaml and routes.yaml files are correctly loaded into the APISIX container.
Setting the logging level to debug to get more insights, but I’m still not seeing any useful logs related to routing or SSL issues.
jogugil@PHOSKI:~/smartiaservices_projects/faasioflex/src$ curl -v http://127.0.0.1:9080/hello
< HTTP/1.1 404 Not Found
< Date: Tue, 11 Feb 2025 15:23:11 GMT
< Content-Type: text/plain; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Server: APISIX/3.11.0
<
{"error_msg":"404 Route Not Found"}
jogugil@PHOSKI:~/smartiaservices_projects/faasioflex/src$ curl -v http://127.0.0.1:9080/heart
< HTTP/1.1 404 Not Found
< Date: Tue, 11 Feb 2025 15:23:15 GMT
< Content-Type: text/plain; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Server: APISIX/3.11.0
<
{"error_msg":"404 Route Not Found"}
jogugil@PHOSKI:~/smartiaservices_projects/faasioflex/src$ curl -v https://127.0.0.1:9443/heart
curl: (35) OpenSSL/3.0.13: error:0A000438:SSL routines::tlsv1 alert internal error
jogugil@PHOSKI:~/smartiaservices_projects/faasioflex/src$ curl -v https://localhost:9443/heart
curl: (35) OpenSSL/3.0.13: error:0A000438:SSL routines::tlsv1 alert internal error
Docker Logs:
I’ve been checking the logs but can’t see any errors pointing to the SSL issue or routing failure.
If anyone has encountered a similar issue or has any suggestions on what might be wrong with the configuration, I’d greatly appreciate the help!
Beta Was this translation helpful? Give feedback.
All reactions