2 ms·
From your answer I guess you have a static web server on port 80 and another one on port 8443. The URL of the JSON starts with /public so I guess it's completel
by pmontra 8y ago
From your answer I guess you have a static web server on port 80 and another one on port 8443. The URL of the JSON starts with /public so I guess it's completely static.
If you can setup the second web server then you're probably in control of the server. How about reverse proxying an /api URL to localhost:8443?
If you can only run another web server on 8443 and can't modify the configuration of the main one on port 80... You simply serve the static JSON file from port 80. This is too easy so you probably can't do that. Do you have an application serving those files on 8443? Maybe run it once to create a file and store it where the web server at port 80 can serve it. Some small script with curl should be enough.