How to set up proxy to install and update flatpak apps?

The entire question fit in the title.