Before you begin
- A running Fountain forge and access to its
app.ini, or to the container's environment. - Site administrator access to the forge.
- An understanding of the Extension trust model. Only install packages whose code you trust.
Turn on the extension host
Extensions are disabled by default. Enable them in the [extensions] section of the app.ini the server uses:
[extensions]
ENABLED = true
In a container, set the equivalent environment variable and recreate the container:
-e FORGEJO__extensions__ENABLED=true
Restart the forge. With no packages installed, nothing else changes; the host is ready to start packages as you install and enable them.
Choose the package directory
PATH selects the package directory. It defaults to extensions under the forge's app data path ([server] APP_DATA_PATH), which is /data/gitea/extensions in the container image. A relative PATH is resolved against the work path.
[extensions]
ENABLED = true
PATH = /var/lib/fountain/data/extensions
The directory belongs to the host. Its layout is:
Path under PATH |
Contents |
|---|---|
ID/ |
One installed package per extension ID: manifest, executable and assets |
.data/ID/ |
The extension's private data directory, created on first start |
.cache/packages/ |
Verified catalog archives, named by SHA-256 |
.intents/ |
Requested state for each package, the only record of whether it should run |
.installations/ |
Each package's stable installation UUID |
.runtime/ |
Per-process sockets, recreated on every start |
.packages.lock |
Lock held by the running host and by package commands |
Private data survives disabling, replacement and removal. Include the whole package directory in your backups along with the rest of the forge's persistent state. The package directory and its sockets are not an interface for other programs.
Verify the result
- Sign in as a site administrator.
- Open Site administration and select Extensions in its menu (
/admin/extensions). - The page lists installed packages, and packages available from a catalog if one is configured. With no packages, it reads "No extension packages are installed."
If the page instead shows "Extension packages are disabled. Set [extensions] ENABLED = true to manage them.", the server did not read your change; check that you edited the app.ini passed to the running server and restarted it.
Troubleshooting
| Symptom | Cause |
|---|---|
Startup fails with required extensions are configured but extensions are disabled |
REQUIRED_IDS is set while ENABLED is false. Enable extensions or clear REQUIRED_IDS. |
Startup fails with extension catalog is unavailable |
CATALOG_PATH is set but the file is missing, not absolute, writable by group or others, owned by another user, or invalid. See Verified extension catalog. |
Startup fails with extension package lock unavailable |
Another process, usually a package command, holds the package store. |
Continue
Install and manage packages from a local directory, or set up a verified extension catalog.