I have setup a reverse proxy between Nginx and Artifactory, following
instructions from here : https://www.jfrog.com/confluence/display/RTF/nginx

I've also enabled HTTP SSO in Artifactory so that a user authenticated by
Artifactory is able to log in to Artifactory automatically. Instructions
followed from here :
https://www.jfrog.com/confluence/display/RTF/Single+Sign-on

Everything is working except that Artifactory is really slow. When I go to
the website (eg. artifactory.myorg.com/webapp/#/home,) a progress wheel
comes up and it keeps rolling and on every page.

The browsing is fine as soon as I turn off the following setting:

proxy_set_header REMOTE_USER $remote_user;

I am guessing that Artifactory is currently processing this user setting for
every request and maybe I need to do something at Tomcat side or to
Artifactory settings to resolve that.

How can I fix this?

Here's how my nginx/artifactory config looks (They were generated by Reverse
Proxy setup page in Artifactory 4.4):

ssl_certificate      /etc/ssl/certs/dummy.crt;
ssl_certificate_key  /etc/ssl/keys/dummy.key;
ssl_session_cache shared:SSL:1m;
ssl_prefer_server_ciphers   on;

server {
    listen 443 ssl;



server_name dummy.net;
if ($http_x_forwarded_proto = '') {
    set $http_x_forwarded_proto  $scheme;
}
## Application specific logs
access_log /var/log/nginx/dummy-access.log;
error_log /var/log/nginx/dummy-error.log;

rewrite ^/$ /artifactory/webapp/ redirect;
rewrite ^/artifactory$ /artifactory/webapp/ redirect;

location /artifactory/ {

auth_pam              "Secure Zone";
auth_pam_service_name "sevice";

proxy_read_timeout  900;
proxy_pass_header   Server;
proxy_cookie_path ~*^/.* /;
proxy_pass         http://127.0.0.1:8081/artifactory/;

proxy_set_header DUMMY_USER $remote_user;
proxy_set_header   X-Artifactory-Override-Base-Url
$http_x_forwarded_proto://$host:$server_port/artifactory;
proxy_set_header    X-Forwarded-Port  $server_port;
proxy_set_header    X-Forwarded-Proto $http_x_forwarded_proto;
proxy_set_header    Host              $http_host;
proxy_set_header    X-Forwarded-For   $proxy_add_x_forwarded_for;
}
}



--
View this message in context: 
http://forums.jfrog.org/Artifactory-Too-Slow-with-HTTP-SSO-Nginx-tp7580767.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to