Self Hosting Git with gitolite. I can clone through ssh but not https

I am having problem with git cloning through HTTPS. It gives my this error, The requested URL returned error: 500. I can clone through ssh find. I did copy most of David Thompson config on nginx, gitolite, certbot and cgit. CGIT seem to be working fine. It allows me to browse in each repository. I check and nginx is part of the git group in the /etc/group. If someone have any suggesting or can look at my config.
Thank You.