Create a new host

  1. From the admin UI of the NGINX Proxy Manager, go to the tab "Hosts" -> "Proxy hosts", and click 'Add Proxy host':
  2. Fill the information required for the new host in Details tab:
    1. Domain name
    2. Scheme (e.g. HTTP, HTTPS)
    3. forward hostname/IP
    4. forward port
    5. cache assets (enabled) → When the browser downloads an asset, it follows a policy dictated by the server to figure out whether or not it should download that asset again on future visits
    6. block common exploits (enabled) → Block SQL injections, file injections, spam, user agents, common bandwidth hoggers and hacking tools
    7. websockets support (enabled) → provide full-duplex communications over a single TCP connection by using a stream of messages rather than a stream of bytes. This makes it easier to connect to data sources asynchronously in cloud deployments.



4. For the SSL section, you need to have SSL certificates setup already to be selected from the list and you need to enable also:


Known bugs

If you want to create custom locations for your endpoint, there is currently a bug that can be fixed with the following workaround: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3474#issuecomment-1902790528

Example: 


Moreover you need to add a custom section into the configuration rewrite /api/(.*) /$1  break; to work properly.