-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdocker-entrypoint.sh
More file actions
executable file
·45 lines (37 loc) · 876 Bytes
/
docker-entrypoint.sh
File metadata and controls
executable file
·45 lines (37 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env sh
set -eu
cfg_dir="${HOME:-/root}/.vibeguard"
cfg_path="${cfg_dir}/config.yaml"
mkdir -p "${cfg_dir}"
if [ ! -f "${cfg_path}" ]; then
cat >"${cfg_path}" <<'YAML'
# VibeGuard Docker default configuration
# - Note: the container must listen on 0.0.0.0; restrict exposure on the host via port mapping (recommended: bind to 127.0.0.1 only)
proxy:
listen: 0.0.0.0:28657
placeholder_prefix: "__VG_"
intercept_mode: global
session:
ttl: 1h
max_mappings: 100000
log:
file: "~/.vibeguard/vibeguard.log"
level: info
redact_log: true
targets:
- host: api.anthropic.com
enabled: true
- host: api.openai.com
enabled: true
- host: api2.cursor.sh
enabled: true
- host: generativelanguage.googleapis.com
enabled: true
patterns:
keywords: []
regex: []
builtin: []
exclude: []
YAML
fi
exec /usr/local/bin/vibeguard "$@"