rhpds / gitea-operator

Gitea Operator to deploy to OpenShift 4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Needing to set ENV variables for HTTP{S} Proxy

kenmoini opened this issue · comments

I have a customer POC that is using this Gitea operator to deploy a temporary Git server, however they need to set some environmental variables for Gitea to be able to use their Proxy settings.

If I make the needed edits to allow setting ENV vars on the Gitea container, would you like that PR or should I just fork and go about it separately?

FWIW, I have implemented this in my fork - happy to submit a PR back upstream if y'all would like this contribution:
https://github.com/kenmoini/gitea-operator

My fork now not only allows manually setting additional environmental variables, but it will also inject the custom Root CA bundle and Proxy configuration of the OpenShift cluster automatically.

@kenmoini I think there are proxy settings available in the app.ini configuration file. If there is a specific app.ini setting you can now provide your app.ini in a configmap: https://github.com/rhpds/gitea-operator#provide-appini-in-configmap