fix: fix: Woodpecker token auto-generation fails — OAuth2 redirect URI mismatch (#172)
This commit is contained in:
parent
b6728f4b0e
commit
e8beabfd05
1 changed files with 2 additions and 0 deletions
|
|
@ -1528,10 +1528,12 @@ create_woodpecker_oauth() {
|
||||||
|
|
||||||
# Store Woodpecker forge config in .env
|
# Store Woodpecker forge config in .env
|
||||||
# WP_FORGEJO_CLIENT/SECRET match the docker-compose.yml variable references
|
# WP_FORGEJO_CLIENT/SECRET match the docker-compose.yml variable references
|
||||||
|
# WOODPECKER_HOST must be host-accessible URL to match OAuth2 redirect_uri
|
||||||
local env_file="${FACTORY_ROOT}/.env"
|
local env_file="${FACTORY_ROOT}/.env"
|
||||||
local wp_vars=(
|
local wp_vars=(
|
||||||
"WOODPECKER_FORGEJO=true"
|
"WOODPECKER_FORGEJO=true"
|
||||||
"WOODPECKER_FORGEJO_URL=${forge_url}"
|
"WOODPECKER_FORGEJO_URL=${forge_url}"
|
||||||
|
"WOODPECKER_HOST=http://localhost:8000"
|
||||||
)
|
)
|
||||||
if [ -n "${client_id:-}" ]; then
|
if [ -n "${client_id:-}" ]; then
|
||||||
wp_vars+=("WP_FORGEJO_CLIENT=${client_id}")
|
wp_vars+=("WP_FORGEJO_CLIENT=${client_id}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue