Cgi-bin dynamic site

I currently have multiple cgi-bin scripts that I need to migrate to GitLab pages. They were previously hosted using an Apache web server. These perl scripts generate a site based on content in files/folders. For reference these are internally hosted pages. Any ideas how I can make this work with gitlab as it’s possible with pure nginx but I don’t believe so with gitlab nginx.