Jasper Vaneessen 2814e72b34
feat: Respect root path for static assets and HTML links
* feat: rootpath for static assets and links1

* fix: static asset handler respects root path

* fix: use rootPath for links

* tests: fix the tests after adding consuctor params

* feat: change matchregex instead of stored URLs

* feat: baseUrl for handlebar engine and templates

* feat: full baseUrl passed to templates

* test: fix integration tests + templates

* chore: implement requested changes

* docs: Describe TemplateEngine interface changes

Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
2022-05-24 10:20:41 +02:00
..
2022-05-05 11:20:53 +02:00
2021-06-01 15:38:55 +02:00

HTTP

Options related to the base support of HTTP requests by the server.

Handler

Sets up all the handlers a request will potentially pass through.

  • default: The full setup, that is middleware + static files + IDP + LDP.
  • simple: A simpler setup in which the IDP is disabled.

Middleware

A set of handlers that will always be run on all requests to add some metadata and then pass the request along.

  • no-websockets: The default setup but without the websocket-related metadata.
  • websockets: The default setup with several handlers.

Server-Factory

The factory used to create the actual server object.

  • no-websockets: Only HTTP.
  • websockets: HTTP and websockets.
  • https-example: An example configuration to use HTTPS directly at the server (instead of at a reverse proxy).

Static

Support for static files that should be found at a specific path.

  • default: The default handler with a favicon and css for the IDP. New entries can easily be added for new files.