[SOLVED] Gitea integration broken when https is used

My drone server is running behind a http proxy and is accessible through https://build.nyxcode.com/. But when I activate a gitea-repository in drone the created webhook tries to access drone through http://build.nyxcode.com/ and no build is triggered. Is this a known bug? Is there a way to fix this?
(DRONE_HOST is set correctly to https://…)

If you are running drone behind a reverse proxy you must set the X-Forwarded-* variables, including the prototype


Reference configurations:

Thanks :no_mouth:
I didn’t think that it had something to do with my proxy - sorry.

the apache module mod_headers has to be installed.
sudo a2enmod headers