upstream abmolecules {
     server 127.0.0.1:1083 weight=1;
    }
    server {
     listen 80;
     listen 443 ssl;
     server_name abmolecules.com www.abmolecules.com;
     if ($server_port = "443") {
      return 301 http://$host$request_uri;
    }
        
    location / {
      proxy_pass_request_headers on;
      proxy_set_header X-Forwarded-Host $host;
      proxy_set_header X-Forwarded-Server $host;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  
       proxy_pass http://abmolecules;
      proxy_read_timeout 300;
      proxy_connect_timeout 300;
      proxy_redirect     off;
    }