How to configure ExpressJS as Gitlab proxy

Currently i have this server.js express server, which serves my own website (www.mydomain.com), AND gitlab (proxy) (git.mydomain.com).

Everything works like a charm, EXCEPT getting repositories raw files responses.

For example, when trying to use Web IDE, and clicking any file, i'm not getting any content.

I' on version 11.10.1 (861fe405)

Maybe some specific configuration i'm missing? I've looked on the nginx and apache examples, but they are very different to this.

Any help?

var express = require('express'),
  evh = require('express-vhost'),
  proxy = require('proxy-middleware'),
  url = require('url');

var server = express();
server.use(evh.vhost(server.enabled('trust proxy')));

var gitOptions = url.parse('http://127.0.0.1:8088/');
gitOptions.preserveHost = true;

evh.register(`git.mydomain.com`, proxy(gitOptions));

var le = require('greenlock-express').create({
   ... config
});

require('http')
      .createServer(le.middleware(server))
      .listen(port, function() {
        console.log('Web server started on', this.address());
      });
});