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
Copy file name to clipboardExpand all lines: website/docs/configuration/overview.mdx
+69-6Lines changed: 69 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,71 @@ description: How to customise push protections and policies
7
7
8
8
On installation, GitProxy ships with an [out-of-the-box configuration](https://github.com/finos/git-proxy/blob/main/proxy.config.json). This is fine for
9
9
demonstration purposes but is likely not what you want to deploy into your environment.
10
+
11
+
### Configuration Sources
12
+
13
+
GitProxy supports dynamic configuration loading from multiple sources. This feature allows you to manage your configuration from external sources and update it without restarting the service. Configuration sources can be files, HTTP endpoints, or Git repositories.
14
+
15
+
To enable configuration sources, add the `configurationSources` section to your configuration:
-`reloadIntervalSeconds`: How often to check for configuration updates (in seconds)
59
+
-`merge`: When true, merges configurations from all enabled sources. When false, uses the last successful configuration load. This can be used to upload only partial configuration to external source
60
+
-`sources`: Array of configuration sources to load from
61
+
62
+
Each source can be one of three types:
63
+
64
+
1.`file`: Load from a local JSON file
65
+
2.`http`: Load from an HTTP endpoint
66
+
3.`git`: Load from a Git repository
67
+
68
+
When configuration changes are detected, GitProxy will:
69
+
70
+
1. Validate the new configuration
71
+
2. Stop existing services
72
+
3. Apply the new configuration
73
+
4. Restart services with the updated configuration
74
+
10
75
### Customise configuration
11
76
12
77
To customise your GitProxy configuration, create a `proxy.config.json` in your current
0 commit comments