Skip to content

Not Serving HTTPS #2595

Answered by nooobcoder
Agastya-Asthana asked this question in Q&A
Discussion options

You must be logged in to vote

@Agastya-Asthana
Here is a very good docker-run to help you with HTTP

STEP 1
Generate the self signed certificate file
GENERATE CRT AND KEY FILE IN THE CERTS DIRECTORY
openssl req
-newkey rsa:2048 -nodes -keyout certs.key
-x509 -days 365 -out certs.crt

STEP 2
Make a certs folder in your current working directory and then use below docker run
Replace your-username-here in the below docker-run with your current user.

STEP 3
docker run -it --rm --name code-server-https -p 0.0.0.0:8080:8080 -v "$(pwd)/CodeServer/.config:/home/coder/.config" -v "$(pwd)/VSCodes:/home/coder/project" -u "$(id -u):$(id -g)" -v $(pwd)/CodeServer/certs/certs.crt:/home/coder/cert.crt -v $(pwd)/CodeServer/certs/cert…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Agastya-Asthana
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #2513 on January 18, 2021 16:03.