You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 8, 2026. It is now read-only.
By default, Docker builds now skip tests for faster production builds. To run tests during build:
72
+
```sh
73
+
docker run -v crafatar-images:/home/app/crafatar/images -e CACHE_BACKEND=memory -p 3000:3000 docker.io/repgraphics/crafatar:latest
74
+
```
75
+
76
+
## Option 3: Source (Node.js)
77
+
78
+
- Install [nodejs](https://nodejs.org/) 24 (LTS).
79
+
- Install `redis-server` (optional if using `CACHE_BACKEND=memory`).
80
+
- Run `npm ci`.
81
+
If that fails, it is usually due to `node-canvas` dependencies. Follow [this guide](https://github.com/Automattic/node-canvas/wiki#installation-guides).
82
+
- Copy `.env.example` to `.env` and adjust values.
83
+
- Run `npm start`.
84
+
85
+
Crafatar is now available at http://0.0.0.0:3000.
86
+
87
+
## Option 4: Pterodactyl Egg
88
+
89
+
- Import [`pterodactyl egg/egg-crafatar.json`](pterodactyl%20egg/egg-crafatar.json) into your panel.
@@ -85,17 +125,6 @@ Run full integration tests manually from GitHub Actions (workflow_dispatch) or l
85
125
npm run test:integration
86
126
```
87
127
88
-
## Manual
89
-
90
-
- Install [nodejs](https://nodejs.org/) 24 (LTS)
91
-
- Install `redis-server`
92
-
- Run `npm install`
93
-
If that fails, it's likely because because of `node-canvas` dependencies. Follow [this guide](https://github.com/Automattic/node-canvas/wiki#installation-guides) to install them.
94
-
- Copy `.env.example` to `.env` and adjust values if needed
95
-
- Run `npm start`
96
-
97
-
Crafatar is now available at http://0.0.0.0:3000.
98
-
99
128
## Configuration / Environment variables
100
129
101
130
Configuration is loaded from `.env` automatically (via `dotenv`) and falls back to defaults from `config.js`.
@@ -129,6 +158,8 @@ cp .env.example .env
129
158
-`DEBUG`: when `true`, enables debug behavior and extra error details.
130
159
-`LOG_TIME`: whether log timestamps are enabled.
131
160
-`SESSIONS_RATE_LIMIT`: outgoing Mojang session requests allowed per second; empty disables this limiter.
161
+
-`SOURCE_REPO`: GitHub repo path used by the Pterodactyl egg installer when bootstrapping source files (format `owner/repo`).
162
+
-`SOURCE_REF`: branch or tag used by the Pterodactyl egg installer (for example `master` or `v2.3.2`).
132
163
-`FACE_DIR`, `HELM_DIR`, `SKIN_DIR`, `RENDER_DIR`, `CAPE_DIR`: optional custom storage directories (must end with `/`).
133
164
134
165
### Cache backend notes
@@ -146,8 +177,10 @@ cp .env.example .env
146
177
## Pterodactyl notes
147
178
148
179
- Set `BIND=0.0.0.0` when running behind panel/reverse proxies.
149
-
- Use an external Redis service or separate Redis node and point `REDIS_URL` to it.
180
+
- Use an external Redis service or separate Redis node and point `REDIS_URL` to it (avoid `localhost` unless Redis is in the same container).
150
181
-`CLOUDFLARE=true` is appropriate when traffic is proxied through Cloudflare.
182
+
-`SOURCE_REPO` and `SOURCE_REF` control which source tree the egg installer downloads to `/home/container`.
183
+
- After egg import/changes, run a server reinstall so the installation script is applied.
0 commit comments