[Solved]SNAPPED nextcloud Cannot install apps due to network limitations

Hey guys I am using snapped nextcloud, and recently github is banned in China. When I tried to install apps like I did before, I only got failures by curl that “timeout”. Is there any method for me to install them manually, or can I use some tricks to deal with that?

(I am considering to use dnsmasq to redirect github.com domains to an unoffcial mirror, but that seems to be problematic)

LMFAO it worked out as I set environment for snapd. Go to /etc/environment and add http_proxy and https_proxy, save and restart snapd, then it worked