woodpecker/server
Tom Kneiphof baaf8b97e1
Fix usage of WOODPECKER_ROOT_PATH (#2485)
I had experienced some issues running Woodpecker behind a reverse-proxy,
resulting from not defining the `WOODPECKER_ROOT_PATH` environment
variable in #2477.

As suggested by @qwerty287, specifying `WOODPECKER_ROOT_PATH=/foo`
*mostly* solved the issue of running the woodpecker server at an url
like `https://example.org/foo`.
However, the webhook urls and badge urls were generated excluding the
configured `WOODPECKER_ROOT_PATH`.

This PR (mostly) fixes issues related to non-empty
`WOODPECKER_ROOT_PATH`.

---------

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-09-22 16:43:31 +02:00
..
api Fix usage of WOODPECKER_ROOT_PATH (#2485) 2023-09-22 16:43:31 +02:00
badges Rename build to pipeline in code (#1224) 2022-10-18 03:24:12 +02:00
cache Switch to upstream ttlcache (#2187) 2023-08-10 09:17:12 +02:00
ccmenu Rename build to pipeline in code (#1224) 2022-10-18 03:24:12 +02:00
cron Never log tokens (#2466) 2023-09-16 10:53:37 +02:00
forge Fix usage of WOODPECKER_ROOT_PATH (#2485) 2023-09-22 16:43:31 +02:00
grpc fix(deps): update module github.com/golang-jwt/jwt/v4 to v5 (#2449) 2023-09-13 09:01:01 +02:00
logging Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
model fix: change config.config_data column type to longblob in mysql (#2434) 2023-09-10 22:24:51 +02:00
pipeline Rename grpc pipeline to workflow (#2173) 2023-08-21 18:30:19 +02:00
plugins Pass netrc data to external config service request (#2310) 2023-08-21 13:22:33 +02:00
pubsub Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
queue Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
router Add repos list for admins (#2347) 2023-09-08 12:26:20 +02:00
store fix(deps): update module github.com/tevino/abool to v2 (#2460) 2023-09-14 07:34:36 +02:00
web Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
config.go Make sure we dont have hidden options for backend and pipeline compiler (#2123) 2023-08-07 21:13:26 +02:00