Setting up gitlab pages with TLS problems

I have followed the instructions at https://docs.gitlab.com/ee/administration/pages/index.html#wildcard-domains-with-tls-support

pages_external_url “https://pages.url:8081/
pages_nginx[‘redirect_http_to_https’] = true
pages_nginx[‘ssl_certificate’] = “/etc/gitlab/ssl/pages-nginx.crt”
pages_nginx[‘ssl_certificate_key’] = “/etc/gitlab/ssl/pages-nginx.key”

But when I do that I get a slew of errors

current:2019-10-18_05:05:48.34818 2019/10/17 22:05:47 [emerg] 7278#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
current:2019-10-18_05:05:48.85484 2019/10/17 22:05:47 [emerg] 7278#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
current:2019-10-18_05:05:49.35497 2019/10/17 22:05:47 [emerg] 7278#0: bind() to 0.0.0.0:80 failed (98: Address already in use)

And gitlab doesn’t work. I’m pretty sure it’s the odd port in the pages_external_url but I have no idea how to fix that with nginx so it listens on the right one.

Any help is appreciated.

Were you able to figure this out? I have this issue as well.