example compose and env docs
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
# copy this to .env and fill in your own values
|
||||||
|
|
||||||
|
# the public address of your instance
|
||||||
|
INSTANCE_URL=https://crosswords.example.com
|
||||||
|
CORS_ORIGIN=https://crosswords.example.com
|
||||||
|
|
||||||
|
# webauthn / passkeys
|
||||||
|
RP_ID=crosswords.example.com
|
||||||
|
RP_ORIGIN=https://crosswords.example.com
|
||||||
|
|
||||||
|
# activitypub federation
|
||||||
|
AP_DOMAIN=crosswords.example.com
|
||||||
|
AP_ACTOR_NAME=cruciverb
|
||||||
|
|
||||||
|
# host port for the puzzle page
|
||||||
|
PORT=8484
|
||||||
|
|
||||||
|
# set to true when nginx/caddy sits in front and sets x-forwarded-for
|
||||||
|
TRUST_PROXY=false
|
||||||
|
|
||||||
|
# at-rest encryption for user data - generate one with
|
||||||
|
# openssl rand -hex 32
|
||||||
|
DATA_ENC_KEY=
|
||||||
@@ -148,10 +148,12 @@ The built image is published on the git server, so there's nothing to compile:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker login git.lashman.live
|
docker login git.lashman.live
|
||||||
|
cp docker-compose.example.yml docker-compose.yml
|
||||||
|
cp .env.example .env
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
That pulls the image, mounts a ./data directory, and serves the puzzle on port 8484. Before first start, edit the compose file: set `INSTANCE_URL` and the federation names to your real domain, and add a `DATA_ENC_KEY` if you want storage encryption.
|
That pulls the image, mounts a ./data directory, and serves the puzzle on port 8484. Before first start, set your real domain and federation names in .env, and add a DATA_ENC_KEY if you want storage encryption.
|
||||||
|
|
||||||
Prefer to run from source?
|
Prefer to run from source?
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
name: cruciverb
|
name: cruciverb
|
||||||
|
|
||||||
|
# copy this to docker-compose.yml (or point compose at it with -f) and
|
||||||
|
# copy .env.example to .env before starting
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: git.lashman.live/lashman/cruciverb:latest
|
image: git.lashman.live/lashman/cruciverb:latest
|
||||||
@@ -28,24 +31,24 @@ services:
|
|||||||
STATIC_DIR: /app/static
|
STATIC_DIR: /app/static
|
||||||
RUST_LOG: info
|
RUST_LOG: info
|
||||||
|
|
||||||
# where your instance lives - set this before first start
|
# where your instance lives
|
||||||
INSTANCE_URL: http://localhost:8484
|
INSTANCE_URL: ${INSTANCE_URL:-http://localhost:8484}
|
||||||
CORS_ORIGIN: http://localhost:8484
|
CORS_ORIGIN: ${CORS_ORIGIN:-http://localhost:8484}
|
||||||
|
|
||||||
# webauthn / passkeys
|
# webauthn / passkeys
|
||||||
RP_ID: localhost
|
RP_ID: ${RP_ID:-localhost}
|
||||||
RP_ORIGIN: http://localhost:8484
|
RP_ORIGIN: ${RP_ORIGIN:-http://localhost:8484}
|
||||||
|
|
||||||
# activitypub federation
|
# activitypub federation
|
||||||
AP_DOMAIN: localhost
|
AP_DOMAIN: ${AP_DOMAIN:-localhost}
|
||||||
AP_ACTOR_NAME: cruciverb
|
AP_ACTOR_NAME: ${AP_ACTOR_NAME:-cruciverb}
|
||||||
|
|
||||||
# admin - leave empty, use first-run setup via browser instead
|
# admin - leave empty, use first-run setup via browser instead
|
||||||
ADMIN_PATH: /admin
|
ADMIN_PATH: /admin
|
||||||
|
|
||||||
# enable if you sit behind a trusted reverse proxy that sets x-forwarded-for
|
# set to true when nginx/caddy sits in front and sets x-forwarded-for
|
||||||
# TRUST_PROXY: "true"
|
TRUST_PROXY: ${TRUST_PROXY:-false}
|
||||||
|
|
||||||
# set to enable at-rest encryption of user data. make one with:
|
# at-rest encryption for user data - generate yours with
|
||||||
# openssl rand -hex 32
|
# openssl rand -hex 32
|
||||||
# DATA_ENC_KEY: ""
|
DATA_ENC_KEY: ${DATA_ENC_KEY:-}
|
||||||
Reference in New Issue
Block a user