1.8 KiB
GIPHY GIF integration
This page documents the server-level configuration required to enable GIPHY integration to add GIFs in your message on a self-hosted Zulip server.
To enable this integration, you need to get a production API key from GIPHY.
Apply for API key
-
Create a GIPHY API key by clicking “Create an App” on the Developer Dashboard.
-
Choose SDK as product type and click Next Step.
-
Enter a name and a description for your app and click on Create New App. The hostname for your Zulip server is a fine name.
-
You will receive a beta API key.
-
Apply for a production API key by following the steps mentioned by GIPHY on the same page. Note that when submitting a screenshot to request a production API key, GIPHY expects the screenshot to show the full page (including URL).
You can then configure your Zulip server to use GIPHY API as follows:
-
In
/etc/zulip/settings.py
, enter your GIPHY API key asGIPHY_API_KEY = "<Your API key from GIPHY>"
.GIPHY API keys are not secrets -- GIPHY expects every browser or other client connecting to your Zulip server will receive a copy -- which is why they are configured in
settings.py
and notzulip-secrets.conf
. -
Restart the Zulip server with
/home/zulip/deployments/current/scripts/restart-server
.
Congratulations! You've configured the GIPHY integration for your Zulip server. Your users can now use the integration as described in the help center article. (A browser reload may be required).