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

Is there a option for https? #41

Closed
higorcoliveira opened this issue Feb 5, 2021 · 2 comments
Closed

Is there a option for https? #41

higorcoliveira opened this issue Feb 5, 2021 · 2 comments
Labels
question Further information is requested

Comments

@higorcoliveira
Copy link

I'm testing the client inside a application with Django. My config server does not allow traffic on 80, only 443. When I use this client, I got a error with https. Changed my config-server to allow traffic to http and configured the client to the same protocol, everything works fine.

Is there a option or plans for allowing https?

Thanks.

@higorcoliveira higorcoliveira changed the title Is there option for https? Is there a option for https? Feb 5, 2021
@amenezes
Copy link
Owner

amenezes commented Feb 5, 2021

Hello @higorcoliveira,

The certificate used by your config-server it's self-signed? Did you try use the option verify=False in the method get_config?

from config.spring import ConfigClient

c = ConfigClient(app_name='simpleweb000', address='https://localhost:2016', fail_fast=False)
c.get_config(verify=False)

For this example I used caddy with this command line:

./caddy_linux_amd64 reverse-proxy --from https://localhost:2016 --to 127.0.0.1:8888 --insecure

and the docker-compose present in the root directory of project.

Try this and let me know if the problem was resolved.

@amenezes amenezes added the question Further information is requested label Feb 5, 2021
@higorcoliveira
Copy link
Author

Hi @amenezes,

Indeed, the certificate is self-signed. The option verify solved my problem.

Thanks.

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
None yet
Development

No branches or pull requests

2 participants