Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Controllers · mod_base
  • Reference
  • Backend developer
  • Controller
  • JavaScript
  • HTTP
  • Security

controller_keyserver_key

Module

mod_base

Publish the site's RSA encryption public key as JavaScript.

The response assigns a JSON Web Key-shaped object to keyserver_public_encrypt_key. The exponent and modulus are base64url encoded, and the public response may be cached for ten minutes.

Edit on GitHub

Related documentation

Controllers

controller_csp_report

Controller handling Content-Security-Policy reports.

Controllers

controller_paysub_stripe_webhook

Receive Stripe payment and subscription events with POST at /paysub/stripe/webhook (dispatch paysub_stripe_webhook ). Generate the absolute…

Controllers

controller_mailgun_webhook

Receive Mailgun event callbacks at /mailgun-webhook (dispatch name mailgun_webhook ). Accepts POST with content type application/json .

Controllers

controller_admin_mailing_run_content

Serve the saved HTML copy of a mailing run for a specific language.

Notifications

observe_content_security_report/2

Handle a content security report

Notifications

observe_content_security_header(Default, Acc, Context)

Check and possibly modify the http response security headers All headers are in lowercase.

Controllers

controller_logoff

Controller that logs off a user, destroying the session. It also removes any “remember me” cookies the user has, so that auto-logon is…

Notifications

observe_security_headers/2

Check and possibly modify the http response security headers All headers are in lowercase.

Controllers

controller_http_error

This controller is called for serving http error pages.

GitHub © 2026 Zotonic