4 export LEMMY_JWT_SECRET=changeme
5 export LEMMY_FEDERATION__ENABLED=true
6 export LEMMY_TLS_ENABLED=false
7 export LEMMY_SETUP__ADMIN_PASSWORD=lemmy
8 export LEMMY_RATE_LIMIT__POST=99999
9 export LEMMY_RATE_LIMIT__REGISTER=99999
10 export LEMMY_CAPTCHA__ENABLED=false
11 export RUST_BACKTRACE=1
14 ls -la target/release/lemmy_server
17 LEMMY_HOSTNAME=lemmy-alpha:8541 \
19 LEMMY_DATABASE_URL=postgres://lemmy:password@postgres_alpha:5432/lemmy \
20 LEMMY_FEDERATION__ALLOWED_INSTANCES=lemmy-beta,lemmy-gamma,lemmy-delta,lemmy-epsilon \
21 LEMMY_SETUP__ADMIN_USERNAME=lemmy_alpha \
22 LEMMY_SETUP__SITE_NAME=lemmy-alpha \
23 target/release/lemmy_server
26 LEMMY_HOSTNAME=lemmy-beta:8551 \
28 LEMMY_DATABASE_URL=postgres://lemmy:password@postgres_beta:5432/lemmy \
29 LEMMY_FEDERATION__ALLOWED_INSTANCES=lemmy-alpha,lemmy-gamma,lemmy-delta,lemmy-epsilon \
30 LEMMY_SETUP__ADMIN_USERNAME=lemmy_beta \
31 LEMMY_SETUP__SITE_NAME=lemmy-beta \
32 target/debug/lemmy_server &
35 LEMMY_HOSTNAME=lemmy-gamma:8561 \
37 LEMMY_DATABASE_URL=postgres://lemmy:password@postgres_gamma:5432/lemmy \
38 LEMMY_FEDERATION__ALLOWED_INSTANCES=lemmy-alpha,lemmy-beta,lemmy-delta,lemmy-epsilon \
39 LEMMY_SETUP__ADMIN_USERNAME=lemmy_gamma \
40 LEMMY_SETUP__SITE_NAME=lemmy-gamma \
41 target/debug/lemmy_server &
44 # An instance with only an allowlist for beta
45 LEMMY_HOSTNAME=lemmy-delta:8571 \
47 LEMMY_DATABASE_URL=postgres://lemmy:password@postgres_delta:5432/lemmy \
48 LEMMY_FEDERATION__ALLOWED_INSTANCES=lemmy-beta \
49 LEMMY_SETUP__ADMIN_USERNAME=lemmy_delta \
50 LEMMY_SETUP__SITE_NAME=lemmy-delta \
51 target/debug/lemmy_server &
54 # An instance who has a blocklist, with lemmy-alpha blocked
55 LEMMY_HOSTNAME=lemmy-epsilon:8581 \
57 LEMMY_DATABASE_URL=postgres://lemmy:password@postgres_epsilon:5432/lemmy \
58 LEMMY_FEDERATION__BLOCKED_INSTANCES=lemmy-alpha \
59 LEMMY_SETUP__ADMIN_USERNAME=lemmy_epsilon \
60 LEMMY_SETUP__SITE_NAME=lemmy-epsilon \
61 target/debug/lemmy_server &
63 echo "wait for all instances to start"
64 while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8541/api/v1/site')" != "200" ]]; do sleep 1; done
65 while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8551/api/v1/site')" != "200" ]]; do sleep 1; done
66 while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8561/api/v1/site')" != "200" ]]; do sleep 1; done
67 while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8571/api/v1/site')" != "200" ]]; do sleep 1; done
68 while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8581/api/v1/site')" != "200" ]]; do sleep 1; done