@@ -104,8 +104,31 @@ GITBUNDLE_ENCRYPTER_MIXED_CONTENT= |
104 | 104 | # ----------------------------------------------------------------- |
105 | 105 | # HTTP server configuration |
106 | 106 | # ----------------------------------------------------------------- |
107 | | -# Also for internal http api. Default will be bind to all interfaces. |
| 107 | +# Hostnames or IP addresses to bind the HTTP server to, |
| 108 | +# comma‑separated. Supports binding to multiple interfaces for |
| 109 | +# security hardening — e.g. `"127.0.0.1,10.0.1.5"` listens only |
| 110 | +# on those two addresses and rejects all others. |
| 111 | +# |
| 112 | +# In standalone deployments (no reverse proxy) the **first** entry |
| 113 | +# is also used as the host part of auto‑generated clone URLs. |
| 114 | +# |
| 115 | +# **NOTE**: Avoid entries that resolve to the same socket address — |
| 116 | +# the OS will reject the second `bind()` with "address already in |
| 117 | +# use" and the server will fail to start. Common pitfalls: |
| 118 | +# |
| 119 | +# | ❌ Wrong | Why it fails | |
| 120 | +# |---|---| |
| 121 | +# | `0.0.0.0,0.0.0.0` | literal duplicate | |
| 122 | +# | `0.0.0.0,192.168.1.5` | 0.0.0.0 already covers every IPv4 interface | |
| 123 | +# | `::,0.0.0.0` | `::` (dual‑stack) may bind both IPv4 and IPv6, conflicting with 0.0.0.0 | |
| 124 | +# | `localhost,127.0.0.1` | `localhost` resolves to `127.0.0.1` | |
| 125 | +# | `example.com,1.2.3.4` | if `example.com` DNS resolves to `1.2.3.4` | |
| 126 | +# |
108 | 127 | # Default: 0.0.0.0 |
| 128 | +# |
| 129 | +# Example: |
| 130 | +# 1. 0.0.0.0 |
| 131 | +# 2. example.com,127.0.0.1 |
109 | 132 | GITBUNDLE_HTTP_HOST= |
110 | 133 |
|
111 | 134 | # HTTPS will use http_port + 443, for startand http port 80, https will be |
@@ -133,8 +156,24 @@ GITBUNDLE_HTTP_KEY= |
133 | 156 | # Default: true |
134 | 157 | GITBUNDLE_SSH_ENABLE= |
135 | 158 |
|
136 | | -# Address to bind the SSH server to. |
| 159 | +# Hostnames or IP addresses to bind the SSH server to, |
| 160 | +# comma‑separated. Supports binding to multiple interfaces (see |
| 161 | +# `GITBUNDLE_HTTP_HOST` for motivation). |
| 162 | +# |
| 163 | +# In standalone deployments the **first** entry is also used for |
| 164 | +# auto‑generated SSH clone URLs (`git@<host>:…`). |
| 165 | +# |
| 166 | +# **NOTE**: Same restrictions as `GITBUNDLE_HTTP_HOST` apply — |
| 167 | +# avoid entries that resolve to the same socket address (duplicate |
| 168 | +# IPs, overlapping wildcard addresses, or domain names that resolve |
| 169 | +# to an already‑listed IP). See that field's documentation for |
| 170 | +# concrete failure examples. |
| 171 | +# |
137 | 172 | # Default: 0.0.0.0 |
| 173 | +# |
| 174 | +# Example: |
| 175 | +# 1. 0.0.0.0 |
| 176 | +# 2. example.com,127.0.0.1 |
138 | 177 | GITBUNDLE_SSH_HOST= |
139 | 178 |
|
140 | 179 | # Port for the SSH server. |
|