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

How to specify port for HTTPS #572

Open
antchau opened this issue Jul 8, 2020 · 2 comments
Open

How to specify port for HTTPS #572

antchau opened this issue Jul 8, 2020 · 2 comments

Comments

@antchau
Copy link

antchau commented Jul 8, 2020

Hello,

We are looking into using HTTPS for our deployment of knowledge repo. I looked in the config_defaults.py file and it said we would need to specify the port manually. Is there a built-in way to specify this port for the application?

Thanks.

@bulam
Copy link
Collaborator

bulam commented Jul 10, 2020

Looks like you can pass the port you would like to use with the --port argument when running the knowledge_repo command

preview.add_argument('--port', default=7000, type=int, help="Specify the port on which to run the web server")

Does this help?

@antchau
Copy link
Author

antchau commented Jul 10, 2020

We did see that port option when deploying. But, doesn't this port option specify the port on which to run the web server? Can we also specify a distinct port for HTTPS? `

# Set DEPLOY_HTTPS to True if you want to enable encrypted
# communication with Flask. When enabled, you must provide
# your ssl certificate, which consists of a .crt and .key
# file.
# Note: Even if you set DEPLOY_HTTPS to True, you still need
# to set the port to 443 manually.
DEPLOY_HTTPS = False
SSL_CERT = {
'cert': '/path/to/cert',
'key': '/path/to/key'

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