Closed TheRealBecks closed 2 years ago
Git operations use the GitPython
library, which is a fairly thin wrapper around Git. You might try logging in to Linux as the nautobot
user account and doing a git config --global https.proxy http://192.0.2.1:3128
command and see if that helps?
@glennmatthews beat me to it, but I came to the same conclusion.
Thanks a lot, it's working now! :) Run these commands as user nautobot
:
git config --global http.proxy http://192.0.2.1:3128
git config --global https.proxy http://192.0.2.1:3128
It would be good if the git proxy configuration for Nautobot gets documented. That's the current HTTP_PROXIES documentation, but no word about the git commands. Do you think it's a good idea to do that?
Absolutely that would be good to add to the documentation. Would you like to make a pull request?
@glennmatthews I created a pull request :smiley:
@glennmatthews Do I need to do anything to get that PR merged? Or will you guys do the job? :)
We'll merge it shortly. Thank you! :-)
Environment
Steps to Reproduce
Follow the standard installation process for an Ubuntu 20.04 server:
Configuration
I configured my HTTP proxy in the file
nautobot_config.py
as follows, but replaced the real IP addresses:Expected Behavior
I can see traffic flowing over the proxy server.
Observed Behavior
I used TCP dump on the proxy server and there we're no packets incoming from the Nautobot server. I also checked with tcpdump on the Nautobot server and can say, that it's sending it's HTTP(S) traffic to the default gateway, so no proxy has been used.
I also checked directly on the Linux console and I can clone repositories from Github. I also saw the traffic on the proxy server. --> Proy configuration in Linux is working