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

runsslserver works only if port provided #100

Open
vladignatyev opened this issue Mar 10, 2020 · 1 comment
Open

runsslserver works only if port provided #100

vladignatyev opened this issue Mar 10, 2020 · 1 comment

Comments

@vladignatyev
Copy link

I'm using django-sslserver for development a client that connects to external API and authorized via OAuth2. In my setup I have some domain in /etc/hosts pointing to my local host to trick the browser and whole OAuth2 flow.

I run sslserver as follows: sudo python manage.py runsslserver mydomain.com:80. I need it to listen on 80 port, that's why I use sudo.

The problem is that I cannot remove :80 away from the host name. This :80 breaks some things in Django app, and requires to setup OAuth2 callback to additional URL (mydomain.com:80 instead of simply mydomain.com).

So, I think it should work by simply using the domain name, without explicitly declaring the port. But it doesn't: sslserver doesn't accept connection and the browser (neither Chrome, nor Firefox) are unable to open connection to my debugging server.

@vladignatyev
Copy link
Author

Hey @teddziuba, can you suggest please some ideas how to resolve that and where to start doing this in the project?
Thank you!

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

No branches or pull requests

1 participant