Live Server Routing

Here we make some notes on the basic routing of the Live Server.

# Direct Requests By default we run the Live Server on port 9090. We can access this directly, or start Live Server on port 80 and serve http requests directly.

# Proxy Requests More usually we proxy the requests through Caddy. We do this currenlty as the lIve server is experimental and buggy - so we want most of the request to be handled direclty by the simple static file serving and reverse proxy capabilites of Caddy.

By default we proxy requests to wiki from Caddy to a wiki node server running of port 3000.

The route looks like:

/wiki-site.json

Which is also Request URL and SCRIPT_NAME for some reason or other in the Live Server routers RequestArray.

Host: rest.livecode.world User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0 Accept: application/json, text/javascript, */*; q=0.01 Accept-Encoding: gzip, deflate Accept-Language: en-GB,en;q=0.5 Priority: u=1 Referer: http://rest.livecode.world/view/welcome-visitors/view/wiki X-Forwarded-For: 127.0.0.1 X-Forwarded-Host: rest.livecode.world X-Forwarded-Proto: http X-Requested-With: XMLHttpRequest