This commit is contained in:
@@ -79,7 +79,7 @@ curl "http://localhost:3000/ssh/public-key?ssh_key=loc_via_git_ed25519"
|
||||
|
||||
## Repository access
|
||||
|
||||
`ALLOWED_GIT_HOSTS` is required and accepts a comma-separated host allowlist, such as `gitea.reversed.dev,github.com`. Set it to `*` only if you explicitly accept arbitrary repository hosts. Local paths, `file://` URLs, non-SSH/HTTPS protocols, and HTTPS URLs containing credentials are rejected.
|
||||
`ALLOWED_GIT_HOSTS` is optional. Leave it unset or empty to allow every remote host, or use a comma-separated allowlist such as `gitea.reversed.dev,github.com`. Local paths, `file://` URLs, non-SSH/HTTPS protocols, and HTTPS URLs containing credentials are always rejected.
|
||||
|
||||
## Configuration
|
||||
|
||||
@@ -88,7 +88,7 @@ Copy `.env.example` to `.env` and adjust:
|
||||
```env
|
||||
PORT=3000
|
||||
API_KEY=
|
||||
ALLOWED_GIT_HOSTS=gitea.reversed.dev
|
||||
ALLOWED_GIT_HOSTS=
|
||||
CACHE_TTL_MINUTES=5
|
||||
CACHE_SWEEP_INTERVAL_MINUTES=5
|
||||
RATE_LIMIT_WINDOW_MINUTES=5
|
||||
|
||||
Reference in New Issue
Block a user