woodpecker/server/forge
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
..
bitbucket Fix usage of WOODPECKER_ROOT_PATH (#2485) 2023-09-22 16:43:31 +02:00
common Add own workflow model (#1784) 2023-06-27 18:01:18 +02:00
gitea Fix usage of WOODPECKER_ROOT_PATH (#2485) 2023-09-22 16:43:31 +02:00
github Fix usage of WOODPECKER_ROOT_PATH (#2485) 2023-09-22 16:43:31 +02:00
gitlab Fix usage of WOODPECKER_ROOT_PATH (#2485) 2023-09-22 16:43:31 +02:00
mocks Execute make generate with new versions (#2365) 2023-09-01 16:44:55 +02:00
types let HookParse func explicit ignore events (#1942) 2023-07-14 02:03:54 +02:00
configFetcher.go Pass netrc data to external config service request (#2310) 2023-08-21 13:22:33 +02:00
configFetcher_test.go Pass netrc data to external config service request (#2310) 2023-08-21 13:22:33 +02:00
forge.go Use id to access orgs (#1873) 2023-07-21 19:45:32 +02:00