KartaWeb. TrackingEndpoint
(Karta v1.0.0)
The tracking host: a second HTTP endpoint, on a port of its own, for the
links Karta puts into mail - the open pixel, tracked links and one-click
unsubscribe (KartaWeb.TrackingRouter).
It is separate from the API and admin endpoint (KartaWeb.Endpoint) so
that neither can be reached through the other, whatever Host a client
sends: the tracking routes do not exist on the API port, and the APIs -
and with them every API key - do not exist here. It parses no request
bodies, sets no cookies and keeps no sessions. The reverse proxy sends
the tracking host name (KARTA_TRACKING_URL) to this port
(KARTA_TRACKING_PORT).
Summary
Functions
Callback implementation for Phoenix.Endpoint.broadcast/3.
Callback implementation for Phoenix.Endpoint.broadcast!/3.
Callback implementation for Phoenix.Endpoint.broadcast_from/4.
Callback implementation for Phoenix.Endpoint.broadcast_from!/4.
Returns the child specification to start the endpoint under a supervision tree.
Returns the endpoint configuration for key
Reloads the configuration given the application environment changes.
Returns the host for the given endpoint.
Callback implementation for Plug.init/1.
Callback implementation for Phoenix.Endpoint.local_broadcast/3.
Callback implementation for Phoenix.Endpoint.local_broadcast_from/4.
Generates the path information when routing to this endpoint.
Generates the script name.
Returns the address and port that the server is running on
Starts the endpoint supervision tree.
Generates a base64-encoded cryptographic hash (sha512) to a static file
in priv/static. Meant to be used for Subresource Integrity with CDNs.
Returns a two item tuple with the first item being the static_path
and the second item being the static_integrity.
Generates a route to a static file in priv/static.
Generates the static URL without any path information.
Generates the endpoint base URL but as a URI struct.
Callback implementation for Phoenix.Endpoint.subscribe/2.
Callback implementation for Phoenix.Endpoint.unsubscribe/1.
Generates the endpoint base URL without any path information.
Functions
Callback implementation for Phoenix.Endpoint.broadcast/3.
Callback implementation for Phoenix.Endpoint.broadcast!/3.
Callback implementation for Phoenix.Endpoint.broadcast_from/4.
Callback implementation for Phoenix.Endpoint.broadcast_from!/4.
Returns the child specification to start the endpoint under a supervision tree.
Returns the endpoint configuration for key
Returns default if the key does not exist.
Reloads the configuration given the application environment changes.
Returns the host for the given endpoint.
Callback implementation for Plug.init/1.
Callback implementation for Phoenix.Endpoint.local_broadcast/3.
Callback implementation for Phoenix.Endpoint.local_broadcast_from/4.
Generates the path information when routing to this endpoint.
Generates the script name.
Returns the address and port that the server is running on
Starts the endpoint supervision tree.
All other options are merged into the endpoint configuration.
Generates a base64-encoded cryptographic hash (sha512) to a static file
in priv/static. Meant to be used for Subresource Integrity with CDNs.
Returns a two item tuple with the first item being the static_path
and the second item being the static_integrity.
Generates a route to a static file in priv/static.
Generates the static URL without any path information.
It uses the configuration under :static_url to generate
such. It falls back to :url if :static_url is not set.
Generates the endpoint base URL but as a URI struct.
It uses the configuration under :url to generate such.
Useful for manipulating the URL data and passing it to
URL helpers.
Callback implementation for Phoenix.Endpoint.subscribe/2.
Callback implementation for Phoenix.Endpoint.unsubscribe/1.
Generates the endpoint base URL without any path information.
It uses the configuration under :url to generate such.