Google Oauth Not Match

I install the gitlab and want to open google oauth funchtion.
In accordance with the document settings, open the function after the error message.

Error: redirect_uri_mismatch .

And found I setting url is test-dev.com:1234 but send url is test-dev.com .
How can I do let url can have port number.

Thank you.