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

Deploy with HTTPS for uwsgi and gunicorn #420

Merged
merged 5 commits into from Sep 17, 2018
Merged

Deploy with HTTPS for uwsgi and gunicorn #420

merged 5 commits into from Sep 17, 2018

Conversation

dorianbrown
Copy link
Contributor

Description of changeset:

In order to be able to deploy using HTTPS, I added an https flag and paths for cert/key files in the server config file. The uwsgi/gunicorn engines now look at the flag, and if true adds to necessary options to deploy with HTTPS.

Additionally mimetypes.add_type('image/svg+xml', '.svg') was added to fix an issue with svg not having the correct MIME type (octet-stream) when using https.

Test Plan:
At the moment the run_tests.sh doesn't contain any tests for deployment. Maybe something we should add?

Auto-reviewers: @NiharikaRay @matthewwardrop @earthmancash @danfrankj

@AppVeyorBot
Copy link

@matthewwardrop
Copy link
Collaborator

Thanks so much for this patch @dorianbrown ! Like your previous patches, this one is awesome and valuable. It does require some testing to make sure that everything is working well, and I am desperately short of time at the moment. I think things should lighten up in the next few weeks, and I'll circle back around to this. And yes.. having unittests for this would ease the manual testing burden substantially... if you have some time to write some, and can think of a way to do it sensibly, that would be amazing!

Copy link
Collaborator

@matthewwardrop matthewwardrop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a slight convention change to avoid using too many local variables with similar sounding names (config and options sound quite similar). Otherwise, looks good. Thanks again @dorianbrown !

dorianbrown and others added 5 commits September 17, 2018 13:54
Also added line to correct svg MIME type being changed to octet-stream over https.
Added docker files to .gitignore (maybe not a good idea?)
@AppVeyorBot
Copy link

@matthewwardrop matthewwardrop merged commit 36f670d into airbnb:master Sep 17, 2018
matthewwardrop added a commit that referenced this pull request Sep 27, 2018
tanuj208 pushed a commit to ElucidataInc/knowledge-repo that referenced this pull request Jun 6, 2019
Implemented https for gunicorn and uwsgi.
Also added line to correct svg MIME type being changed to octet-stream over https.
Added docker files to .gitignore (maybe not a good idea?)
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

Successfully merging this pull request may close these issues.

None yet

3 participants