Json-server: Please more info on SSL deployment, thanks!

Created on 24 Jun 2017  路  2Comments  路  Source: typicode/json-server

I do not understand the information regarding ssl deployment. Does that translate to:
"json-server does not support encrypted network connections natively, so please use a proxy that translates the unencrypted connection to an encrypted one to your client"
?
If yes, please write it like this. Or do I misunderstand that?

Most helpful comment

OK, so I think that answers my question with "yes, json-server does not support encrypted connections, but you can use any kind of proxy." - right?

Please note that in no way I think that it is a bad thing that json-server does not support encryted connections itself, that is totally ok - I just really wanted to have an explicit statement about the actual functionality to understand its feature set. I think it is a very useful piece of software!

Thanks!

All 2 comments

You can use ngrok

if you are on mac

brew install ngrok // install ngrok
json-server db.json // launch your json server
ngrok http 3000 // proxy your request wih ngrok

You should see a screen like that :
screen shot 2017-06-24 at 16 43 05

then if you query curl https://231f6e67.ngrok.io/posts you should see data of your server

OK, so I think that answers my question with "yes, json-server does not support encrypted connections, but you can use any kind of proxy." - right?

Please note that in no way I think that it is a bad thing that json-server does not support encryted connections itself, that is totally ok - I just really wanted to have an explicit statement about the actual functionality to understand its feature set. I think it is a very useful piece of software!

Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

boydenhartog picture boydenhartog  路  3Comments

sboudouk picture sboudouk  路  3Comments

strom picture strom  路  4Comments

0plus1 picture 0plus1  路  3Comments

casvil picture casvil  路  4Comments