Spaces:
Running
Running
Allow HF Space host in Codeman and forward Host 127.0.0.1 from Caddy
Browse files- config/Caddyfile.example +3 -1
- services/25-codeman.sh +2 -0
config/Caddyfile.example
CHANGED
|
@@ -54,6 +54,8 @@
|
|
| 54 |
|
| 55 |
# 6. Codeman AI Coding Mission Control fallback
|
| 56 |
handle {
|
| 57 |
-
reverse_proxy 127.0.0.1:3000
|
|
|
|
|
|
|
| 58 |
}
|
| 59 |
}
|
|
|
|
| 54 |
|
| 55 |
# 6. Codeman AI Coding Mission Control fallback
|
| 56 |
handle {
|
| 57 |
+
reverse_proxy 127.0.0.1:3000 {
|
| 58 |
+
header_up Host 127.0.0.1
|
| 59 |
+
}
|
| 60 |
}
|
| 61 |
}
|
services/25-codeman.sh
CHANGED
|
@@ -10,9 +10,11 @@ if [ -f /data/.env ]; then
|
|
| 10 |
fi
|
| 11 |
|
| 12 |
export PATH="/usr/local/bin:/usr/bin:/bin:$PATH"
|
|
|
|
| 13 |
export CODEMAN_PORT=3000
|
| 14 |
export CODEMAN_HOST="127.0.0.1"
|
| 15 |
export CODEMAN_PASSWORD="${AUTH_TOKEN:-}"
|
|
|
|
| 16 |
export CODEMAN_CONFIG_DIR="/data/script/codeman"
|
| 17 |
export CODEMAN_DATA_DIR="/data/script/codeman/data"
|
| 18 |
export CODEMAN_CASES_PATH="/data/workspace"
|
|
|
|
| 10 |
fi
|
| 11 |
|
| 12 |
export PATH="/usr/local/bin:/usr/bin:/bin:$PATH"
|
| 13 |
+
export TERM="xterm-256color"
|
| 14 |
export CODEMAN_PORT=3000
|
| 15 |
export CODEMAN_HOST="127.0.0.1"
|
| 16 |
export CODEMAN_PASSWORD="${AUTH_TOKEN:-}"
|
| 17 |
+
export CODEMAN_ALLOWED_HOSTS=".hf.space,amangs-cbot.hf.space,localhost,127.0.0.1"
|
| 18 |
export CODEMAN_CONFIG_DIR="/data/script/codeman"
|
| 19 |
export CODEMAN_DATA_DIR="/data/script/codeman/data"
|
| 20 |
export CODEMAN_CASES_PATH="/data/workspace"
|