Nexus 3 over SSL and http

Hi, Guys,
I’m looking for way to set up a ngix on https://localhost/nexus and http://localhost/nexus I’m using a nginx as a web server with following config, but it not working as expected.

server {
listen 443 ssl;
listen 80;
server_name example.co.uk;
# allow large uploads of files
client_max_body_size 1G;
location / {
  proxy_pass http://127.0.0.1:8081/;
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_set_header X-Forwarded-Proto "https";
}
}
#server {
#    listen 8081;
#    #listen 443 ssl;
#    server_name example.co.uk;
#    rewrite ^/n8081/nexus/(.*)$ https://127.0.0.1/nexus/$1 redirect;
#    #return 301 $scheme://127.0.0.1;
#}
server {
listen 5100 ssl;

# allow large uploads of files
client_max_body_size 1G;

location / {
  proxy_pass http://127.0.0.1:8082/;
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Proto "https";
}
}
server {
listen 5500 ssl;
# allow large uploads of files
client_max_body_size 1G;
location / {
  proxy_pass http://127.0.0.1:8083/;
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Proto "https";
}
}

Hi Marcin, Have you seen our documentation on configuring reverse proxies?
https://help.sonatype.com/repomanager3/installation/run-behind-a-reverse-proxy

Yes, I set up my config according to that documentation but sill only HTTPS port is available