Since I couldn't find any proper solution, I decided to reinstall my entire gitlab ce server and set domain name instead of IP, everything went well. Also, I indicated http, then I had required ssl for my new domain through proxy manager node. It is quite simple. I messed it up at first and wasted my entire week)