Setting Json-server over https


#1

HI! I’m trying to get json-server on https, I currently installed certbot on mysite.com and www.mysite.com, and work fine with apache as webserver, i need a suggestion about how to archive a proxy that listen a port and send the flow to https useful for json-server.
I tried to set: json-server --port 444 --static index.html -H ‘mysite.com’ db.json
Many ports as 444 are available but not 443, i need to use this for web server and json-server too, may i ask an help?
Thanks!


#2

HI! I’m trying to get json-server on https, I currently installed certbot on mysite.com and www.mysite.com, and work fine with apache as webserver, i need a suggestion about how to archive a proxy that listen a port and send the flow to https useful for json-server.
I tried to set: json-server --port 444 --static index.html -H ‘mysite.com site writemyessay.pro’ db.json
Many ports as 444 are available but not 443, i need to use this for web server and json-server too, may i ask an help?
Thanks!

Hello

The best variant is to use hotel with Json-server. You may look at the steps suggested by a Guthub user here - https://github.com/typicode/json-server/issues/389
Hope it works for you.