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.

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.

Controllers

controller_file

Serve an uploaded-, resized- or library file.

Controllers

controller_mqtt_transport

Controller for transport of MQTT data between the browser (client) and server.

Controllers

controller_ping

Simple controller for connection tests, used on the /test/connection page.

GitHub © 2026 Zotonic