From b078c45ebc6af7d400cb0b295dc10bdc05c97d4c Mon Sep 17 00:00:00 2001 From: Gregor Michels Date: Sun, 3 Jul 2022 01:57:37 +0200 Subject: [PATCH] environment: also configure http(s) proxy and enter python venv --- environment | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/environment b/environment index 106c4d6..1f443ea 100644 --- a/environment +++ b/environment @@ -1 +1,14 @@ +# configure directory for pass PASSWORD_STORE_DIR=`pwd`/password-store; export PASSWORD_STORE_DIR + +# configure http(s) proxy (create a dynamic socks proxy via ssh on port 8888) +http_proxy=socks5://127.0.0.1:8888 +export HTTP_PROXY=$http_proxy +export HTTPS_PROXY=$http_proxy +cat << EOF +configured HTTP_PROXY and HTTPS_PROXY to use a local socks proxy on port 8888 +start with: ssh -D 8888 gw-core01 +EOF + +# enter python virtualenv +. ansible-environment/bin/activate