Using https with termination in haproxy/nginx
See original GitHub issueI’m trying to use the docker in my docker environment where SSL is terminated in haproxy. How can I convince oidc-server-mock to give me https url’s when calling .well-known/openid-configuration urls?
I found IssuerUrl in https://identityserver4.readthedocs.io/en/latest/reference/options.html but i don’t seem to be able to pass this to the docker.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
HAProxy SSL Termination (Offloading) Everything to Know
The HAProxy load balancer provides high-performance SSL termination, allowing you to encrypt and decrypt traffic. You can quickly and easily enable SSL/TLS ...
Read more >Optimizing HAProxy SSL Termination (with Nginx backend ...
HAProxy forces HTTPS for verification, then terminates SSL, and communicates HTTP to backend Nginx servers. Nginx servers are identical and ...
Read more >Mixing mode tcp and http - SSL termination and Passthrough
That got everything working just fine. At the time I wanted to terminate all SSL at HAProxy. Works beautifully. I'm standing up a...
Read more >HAPROXY vs Nginx for load balancing websites w/SSL ...
Haproxy can let you proxy 443 without terminating SSL by using the SNI header, which can be useful depending on your setup. Upvote...
Read more >How Nginx and HAProxy works
SSL /TLS termination: Both NGINX and HAProxy can be configured to handle SSL/TLS encryption and decryption, allowing for secure communication between the client ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

So this is the answer
Ah yes. The point is in my setup haproxy terminates ssl and nginx is setup in a reverse proxy. So I don’t need the mock to listen on the SSL port(433) I just need it to reply with urls like it is.
So in the well-known I would want
"issuer": "https://openid-mock.docker"etc. Even though the mock is actually running no port 80 with container nameopenid-mock.