nginx example config - acp-bundle/acp-java GitHub Wiki

Inside the server block you will need this reverse proxy setting:

location / {
          proxy_pass http://127.0.0.1:8085;
          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;
      }

if you use letsencrypt, which I highly advise, make sure to have an exception for the challenges:

    location ^~ /.well-known/ {
        try_files $uri $uri/;
        autoindex        on;
        access_log      off;
        log_not_found   off;
    }