How to configure ReverseProxy using REST API? [Video]

John Wright
2021-01-28 09:07

How to configure ReverseProxy using REST API?

Video Transcription

Hi, I’m John from JFrog Support. In this short video, I’ll go over obtaining and updating the reverse proxy configuration using the Artifactory REST API. These are the REST API commands that we’ll be using. We’re going to go ahead and obtain the reverse proxy configuration. We’ll go ahead and update the reverse proxy configuration, and then we’ll go ahead and generate the reverse proxy snippet to be used in a reverse proxy.

So here, we’re going to go ahead and reach the Artifactory instance. And this can be from a separate instance or from local host, depending on whatever is accessible. In this case, I’m reaching it from my reverse proxy. We’ve gone on the snippet and we can see that this is using the embedded Tomcat, as it says direct. What we’re going to want here is we’re going to want this to be NGINX because the server has NGINX. So we’re going to go ahead and update the reverse proxy configuration with NGINX. And I’ve also changed the server name to be the host name that I have set.

It’s successfully updated the reverse proxy configuration with NGINX. And so we’ll go ahead and grab this snippet. From here, all we need to do is obtain the snippet for NGINX and go ahead and replace this with Apache if you’re using Apache as a reverse proxy. And here we see the reverse proxy configuration that’s generated. We can go ahead and just grab all of this and paste this in as a configuration file to NGINX, save the configuration, test it and reload it. And from there, Artifactory will be accessible via NGINX.

That was my video on obtaining and updating the reverse proxy configuration using the Artifactory REST API. Thanks for watching. And I hope you enjoyed it. Feel free to leave your comments, feedback, or questions in the comment section below.