Configurations
Last updated: November 1, 2025
Configuration Guide
This document explains how to configure FoxWiki for deployment, including data sources and branding options.
Configuration Options
FoxWiki can be configured using environment variables. When running in a Docker container, you can provide these variables through a
.env
file or directly in your Docker Compose or Kubernetes configuration.Variant Support Configuration
FoxWiki supports multiple variants (e.g., different languages or versions):
Environment Variable | Description | Default Value |
|---|---|---|
| WIKI_ENABLE_VARIANTS | Enable variant support (true or false) | false |
| WIKI_DEFAULT_VARIANT | Default variant to use | english |
Branding Configuration
You can customize the appearance and branding of your wiki.
Icon handling:
- Place an icon.svg(preferred) oricon.pngfile at the root of your wiki content directory (for markdown mode this is yourWIKI_MARKDOWN_DIR, e.g.,/docs).
- FoxWiki will automatically use that file as the site icon and app icon. If neither file exists, it falls back to the built-in /fox_icon.png.
Environment Variable | Description | Default Value |
|---|---|---|
| WIKI_NAME | Name of the wiki | Fox Wiki |
| WIKI_SITE_URL | URL of the wiki site | https://wiki.orangefox.tech |
Data Refetching
Environment Variable | Description | Default Value |
|---|---|---|
| WIKI_REFETCH_INTERVAL | Interval in seconds to refetch wiki content in foxapi mode. Set to 0 to disable. | 3600 |
Color Scheme Configuration
FoxWiki supports detailed color scheme customization for both light and dark themes. You can configure colors for different shades (50, 100, 200, 300, 400, 500, 600, 700, 800, 900) where 500 is the brand color:
Light Theme Primary Colors
Environment Variable | Description | Default Value |
|---|---|---|
| WIKI_COLOR_LIGHT_PRIMARY_50 | Lightest primary color | #fff3e1 |
| WIKI_COLOR_LIGHT_PRIMARY_100 | Very light primary color | #ffe0b0 |
| WIKI_COLOR_LIGHT_PRIMARY_200 | Light primary color | #ffcc7e |
| WIKI_COLOR_LIGHT_PRIMARY_300 | Medium light primary color | #ffb74d |
| WIKI_COLOR_LIGHT_PRIMARY_400 | Medium primary color | #ffa726 |
| WIKI_COLOR_LIGHT_PRIMARY_500 | Brand primary color | #ed7002 |
| WIKI_COLOR_LIGHT_PRIMARY_600 | Medium dark primary color | #e65c00 |
| WIKI_COLOR_LIGHT_PRIMARY_700 | Dark primary color | #d84c00 |
| WIKI_COLOR_LIGHT_PRIMARY_800 | Very dark primary color | #c73e00 |
| WIKI_COLOR_LIGHT_PRIMARY_900 | Darkest primary color | #ae3200 |
Light Theme Neutral Colors
Environment Variable | Description | Default Value |
|---|---|---|
| WIKI_COLOR_LIGHT_NEUTRAL_100 | Very light neutral color | #f9f2e8 |
| WIKI_COLOR_LIGHT_NEUTRAL_200 | Light neutral color | #eedfc8 |
| WIKI_COLOR_LIGHT_NEUTRAL_300 | Medium light neutral color | #c4a68b |
| WIKI_COLOR_LIGHT_NEUTRAL_400 | Medium neutral color | #c4a68b |
| WIKI_COLOR_LIGHT_NEUTRAL_500 | Brand neutral color | #957a63 |
| WIKI_COLOR_LIGHT_NEUTRAL_600 | Medium dark neutral color | #5a4a38 |
| WIKI_COLOR_LIGHT_NEUTRAL_700 | Dark neutral color | #3c3125 |
| WIKI_COLOR_LIGHT_NEUTRAL_800 | Very dark neutral color | #271f17 |
| WIKI_COLOR_LIGHT_NEUTRAL_900 | Darkest neutral color | #130e0b |
Dark Theme Primary Colors
Environment Variable | Description | Default Value |
|---|---|---|
| WIKI_COLOR_DARK_PRIMARY_50 | Lightest primary color | #fff3e1 |
| WIKI_COLOR_DARK_PRIMARY_100 | Very light primary color | #ffe0b0 |
| WIKI_COLOR_DARK_PRIMARY_200 | Light primary color | #ffcc7e |
| WIKI_COLOR_DARK_PRIMARY_300 | Medium light primary color | #ffb74d |
| WIKI_COLOR_DARK_PRIMARY_400 | Medium primary color | #ffa726 |
| WIKI_COLOR_DARK_PRIMARY_500 | Brand primary color | #ed7002 |
| WIKI_COLOR_DARK_PRIMARY_600 | Medium dark primary color | #e65c00 |
| WIKI_COLOR_DARK_PRIMARY_700 | Dark primary color | #d84c00 |
| WIKI_COLOR_DARK_PRIMARY_800 | Very dark primary color | #c73e00 |
| WIKI_COLOR_DARK_PRIMARY_900 | Darkest primary color | #ae3200 |
Dark Theme Neutral Colors
Environment Variable | Description | Default Value |
|---|---|---|
| WIKI_COLOR_DARK_NEUTRAL_100 | Very light neutral color | #f9f2e8 |
| WIKI_COLOR_DARK_NEUTRAL_200 | Light neutral color | #eedfc8 |
| WIKI_COLOR_DARK_NEUTRAL_300 | Medium light neutral color | #c4a68b |
| WIKI_COLOR_DARK_NEUTRAL_400 | Medium neutral color | #c4a68b |
| WIKI_COLOR_DARK_NEUTRAL_500 | Brand neutral color | #957a63 |
| WIKI_COLOR_DARK_NEUTRAL_600 | Medium dark neutral color | #5a4a38 |
| WIKI_COLOR_DARK_NEUTRAL_700 | Dark neutral color | #3c3125 |
| WIKI_COLOR_DARK_NEUTRAL_800 | Very dark neutral color | #271f17 |
Header Links Configuration
You can configure the links in the header using the
WIKI_HEADER_LINKS
environment variable. The format is:Where:
- Labelis the text displayed for the link
- URLis the destination URL
- external(optional) indicates if the link should open in a new tab
Default header links:
- Wiki: /
Docker Deployment Example
Here's an example of how to configure FoxWiki in a Docker Compose file:
Using with Environment Variables
When deploying FoxWiki in a Docker container, you can create a
.env
file and attach it to the container:Then run your Docker container with: