blob: c58b73d1f014f809edff6e2d1db064973b0b7609 [file] [log] [blame]
[replication]
lockErrorMaxRetries = 30
maxRetries = 30
[gerrit]
autoReload = true
replicateOnStartup = {{ REPLICATE_ON_STARTUP }}
[remote "replica-1"]
url = {{ REPLICA_1_URL }}
adminUrl = {{ REPLICA_1_AMDIN_URL }}
mirror = true
push = +refs/*:refs/*
threads = 10
createMissingRepositories = true
replicateProjectDeletions = true
replicateHiddenProjects = true
timeout = 60
[remote "replica-1-pull"]
# Issue 16694: pull-replication: Do not force configuration of `url` in remotes
url = {{ REPLICA_1_URL }}
apiUrl = {{ REPLICA_1_API_URL }}
# Issue 16635: pull-replication should provide `mirror` configuration
mirror = true
# Issue 16577: pull-replication: Do not force configuration of `fetch` in remotes
fetch = +refs/*:refs/*
threads = 10
createMissingRepositories = true
replicateProjectDeletions = true
replicateHiddenProjects = true
timeout = 60
{% if REMOTE_TARGET %}
[remote "{{REMOTE_TARGET_URL}}"]
url = {{ REMOTE_TARGET_URL }}
adminUrl = {{ REMOTE_ADMIN_TARGET_URL }}
{%- if MULTISITE_GLOBAL_PROJECTS is defined and MULTISITE_GLOBAL_PROJECTS|length -%}
{%- set globalProjectsList = MULTISITE_GLOBAL_PROJECTS.split(',') %}
{%- for pattern in globalProjectsList %}
projects = {{ pattern }}
{%- endfor -%}
{% endif %}
mirror = true
push = +refs/*:refs/*
threads = 10
createMissingRepositories = true
replicateProjectDeletions = true
replicateHiddenProjects = true
timeout = 60
{% endif %}