简体   繁体   中英

Https doesn't show in the server swagger UI

I have a dockerfile where i have exposed port 8080 with http protocol, added the required parameters. The app is in do.net. I have created a swagger ui using deployment file, service and ingress. It works fine when I hit the URL in https://example.org , but below all API requests goes in http only. I tried making change in Ingress for port forwarding, ssl redirect, backend protocol, nothing seems to be working. I tried making change in Dockerfile, that might be a issue, It gives me error everytime saying Unable to Configure HTTPS endpoint, even though i have generated the self-signed certificate.

Could the problem be in self-signed certificate? Browsers may not be accepting it. You can use Let's Encrypt, for example.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM