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

SSL error #117

Closed
necxuris opened this issue Sep 25, 2024 · 1 comment
Closed

SSL error #117

necxuris opened this issue Sep 25, 2024 · 1 comment
Assignees

Comments

@necxuris
Copy link

Hello,

I am trying to install the server version 3.6 from source.
I tried 2 times on different linux distro (ubuntu and almalinux) and different python version (3.9 and 3.10) and on both setups I get an SSL error on first launch.

I installed the dependencies in a new venv and I migrated the database with python manage.py migrate.
When I run python manage.py runserver, the server is starting and running just fine at http://127.0.0.1:8000 but when I try to access the web interface, I am redirected to https://127.0.0.1:8000 and I get an SSL error (SSL_ERROR_RX_RECORD_TOO_LONG on firefox and just SSl error on chromium based navigator).

I tried to add in settings.py, SECURE_SSL_REDIRECT = False but it didn't change anything and I don't get an error in the server terminal.

Can you help resolve this issue ?
Thank you very much.

@dkmstr
Copy link
Collaborator

dkmstr commented Sep 25, 2024

Hi, there are two middlewares that you should disable for local development:
1.-

'uds.core.util.middleware.redirect.RedirectMiddleware',

2.-
'uds.core.util.middleware.security.UDSSecurityMiddleware',

v3.6 is designed to work on 3.9 or greater, so no problem should be using any of the two versions. The sample settings is provided by a "production" environment, with ofc, UDS not being exposed directly ut thought a web server like apache or nginx :).

Hope this helps

@dkmstr dkmstr closed this as completed Sep 25, 2024
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

2 participants