Forum Discussion
Routing git traffic
Is this possible to route git traffic with F5 to GitHub or BitBucket? I currently have a self-hosted git server, git.example.com, and we want to move everything over to Bitbucket, but I don't want to break all the scripts and developers workflow. Is there a way to move my git.example.com to F5 and create a rule that handles all git level traffic (ports 22 or 443)?
6 Replies
- Brad_Parker
Cirrus
You could try using an iRule that will re-write your git.example.com/uri URIs to their corresponding BitBucket URIs and forward the traffic onto pool members that are Bitbucket IPs. I would definitely test this before directing your developer traffic to it. i.e.
when HTTP_REQUEST { if { [string tolower [HTTP::host]] equals "git.example.com"} { HTTP::host bitbucket.org HTTP::uri /newpath[HTTP::uri] } }- HumanSky_193882
Nimbostratus
How would this be handled, say for example, if the local git repo is "git@git.example.com:drupal/site/foo" and the corresponding Bitbucket repo is "git@bitbucket.org:drupal_site_foo"? This is all through SSH (port 22). - Brad_Parker
Cirrus
if its all via SSH/SFTP there is nothing you can do.
- Brad_Parker_139
Nacreous
You could try using an iRule that will re-write your git.example.com/uri URIs to their corresponding BitBucket URIs and forward the traffic onto pool members that are Bitbucket IPs. I would definitely test this before directing your developer traffic to it. i.e.
when HTTP_REQUEST { if { [string tolower [HTTP::host]] equals "git.example.com"} { HTTP::host bitbucket.org HTTP::uri /newpath[HTTP::uri] } }- HumanSky_193882
Nimbostratus
How would this be handled, say for example, if the local git repo is "git@git.example.com:drupal/site/foo" and the corresponding Bitbucket repo is "git@bitbucket.org:drupal_site_foo"? This is all through SSH (port 22). - Brad_Parker_139
Nacreous
if its all via SSH/SFTP there is nothing you can do.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
