-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[WIP] adding https guide to installation guide #458
Conversation
54f330c
to
691a113
Compare
docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d | ||
``` | ||
|
||
Those changes should get CVAT running over SSH. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SSH?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would really LOVE to know how to setup SSL. Keys can be getting from Cloudflare for examples ?
Thanks much.
Steve
First, you'll want to set the `SECURE_SSL_REDIRECT` inside your `cvat/settings/base.py` file. | ||
This tells Django that you want to use SSL. | ||
```python | ||
SECURE_SSL_REDIRECT = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to me, we should do it through environment variables
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of the hardcoded True value
@alex9311 , is it possible to provide instructions which don't require modify source code? It is OK to add a couple of more files or redefine some environment variables but I don't think that it is good to ask users to modify original source code to enable a feature. |
@alex9311 , one more comment. Need to add information about the feature into CHANGELOG.md |
@alex9311 , will you find time to fix our comments and slightly improve the PR? |
hi @nmanovic , yeah I should have time this weekend |
I can easily read from an environment variable to set The generation of SLL certificates in the Dockerfile is just a suggestion, there are a lot of different ways users could get those key and cert files. I could remove the Docker suggestion and just tell the user they will need to put their certs at |
It will be better because in this case we can use docker-compose.override.yml to provide the value.
It is OK.
Probably it is better to ask users to put certificates into a directory on host (e.g. |
docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d | ||
``` | ||
|
||
Those changes should get CVAT running over SSH. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would really LOVE to know how to setup SSL. Keys can be getting from Cloudflare for examples ?
Thanks much.
Steve
@alex9311 , please let me know if you are going to fix comments. |
@alex9311 , it seems you don't have time to finish the PR. I will close it right now. |
will someone please try out the steps in this guide
#452