https://github.com/ttab/elephant-replicant
Replicates data to another Elephant environment
https://github.com/ttab/elephant-replicant
Last synced: 10 months ago
JSON representation
Replicates data to another Elephant environment
- Host: GitHub
- URL: https://github.com/ttab/elephant-replicant
- Owner: ttab
- Created: 2025-07-31T14:17:48.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-09-01T09:44:33.000Z (10 months ago)
- Last Synced: 2025-09-01T11:50:22.853Z (10 months ago)
- Language: Go
- Size: 1.37 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elephant Replicant
Replicates data to another Elephant environment. The replicant uses optimistic locking to prevent overwrites of documents that have been modified in the destination. This is not replication as a method of providing a backup or standby instance, rather it's a solution for keeping a stage or QA environment updated with relevant data.
ACL:s will always be replicated.
Attachments will only be replicated if `-all-attachments` is set or if they have been explicitly enabled by document type and attachment name using `-include-attachments`.
## Example configuration
Configuration for running replication to a local repository instance:
``` shell
ADDR=:1280
PROFILE_ADDR=:1281
IGNORE_TYPES=core/article+meta,tt/wire,tt/wire-provider,tt/wire-source
IGNORE_SUBS=core://application/elephant-wires
#INCLUDE_ATTACHMENTS=image.core/image,laygout.tt/print-layout
ALL_ATTACHMENTS=true
# Replicate from prod
REPOSITORY_ENDPOINT=https://repository.api.tt.ecms.se
OIDC_CONFIG=https://login.tt.se/realms/elephant/.well-known/openid-configuration
CLIENT_ID=replicant-send
CLIENT_SECRET=xoxo
# Replicate from stage
# REPOSITORY_ENDPOINT=https://repository.stage.tt.se
# OIDC_CONFIG=https://login.stage.tt.se/realms/elephant/.well-known/openid-configuration
# CLIENT_ID=replicant-send
# CLIENT_SECRET=xoxo
TARGET_REPOSITORY_ENDPOINT=http://localhost:1080
TARGET_OIDC_CONFIG=https://login.stage.tt.se/realms/elephant/.well-known/openid-configuration
TARGET_CLIENT_ID=replicant-receive
TARGET_CLIENT_SECRET=xoxo
```