woodpecker/server/api
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
..
debug Update swagger API specification (#1782) 2023-06-03 21:38:36 +02:00
metrics Use API error helpers and improve response codes (#2366) 2023-09-02 13:31:10 +02:00
agent.go Use API error helpers and improve response codes (#2366) 2023-09-02 13:31:10 +02:00
badge.go Use API error helpers and improve response codes (#2366) 2023-09-02 13:31:10 +02:00
cron.go Use API error helpers and improve response codes (#2366) 2023-09-02 13:31:10 +02:00
global_secret.go Use API error helpers and improve response codes (#2366) 2023-09-02 13:31:10 +02:00
helper.go Use API error helpers and improve response codes (#2366) 2023-09-02 13:31:10 +02:00
hook.go Use API error helpers and improve response codes (#2366) 2023-09-02 13:31:10 +02:00
login.go Use API error helpers and improve response codes (#2366) 2023-09-02 13:31:10 +02:00
org.go Use API error helpers and improve response codes (#2366) 2023-09-02 13:31:10 +02:00
org_secret.go Use API error helpers and improve response codes (#2366) 2023-09-02 13:31:10 +02:00
orgs.go Use API error helpers and improve response codes (#2366) 2023-09-02 13:31:10 +02:00
pipeline.go Use API error helpers and improve response codes (#2366) 2023-09-02 13:31:10 +02:00
registry.go Use API error helpers and improve response codes (#2366) 2023-09-02 13:31:10 +02:00
repo.go Fix usage of WOODPECKER_ROOT_PATH (#2485) 2023-09-22 16:43:31 +02:00
repo_secret.go Use API error helpers and improve response codes (#2366) 2023-09-02 13:31:10 +02:00
signature_public_key.go Update swagger API specification (#1782) 2023-06-03 21:38:36 +02:00
stream.go Fix log view (#1874) 2023-07-01 18:55:00 +02:00
user.go Use API error helpers and improve response codes (#2366) 2023-09-02 13:31:10 +02:00
users.go Use API error helpers and improve response codes (#2366) 2023-09-02 13:31:10 +02:00
z.go Use API error helpers and improve response codes (#2366) 2023-09-02 13:31:10 +02:00