The easiest way that i found when you are on debian is to install the web frontend / api in docker. Check the official documentation to install docker on debian first.
Download war files from netxms and drop them here with the same names as in the picture:

Its quite nice to manage docker with visual code or else you can just start the docker from shell.
http://localhost:8080 is the server running on.
Now you can install another docker like nginx-proxy-manager and let it point to this server.
Good luck.
Code Select
services:
tomcat:
image: tomcat:9.0
container_name: tomcat9
ports:
- "8080:8080"
volumes:
- ./webapps:/usr/local/tomcat/webapps
- ./logs:/usr/local/tomcat/logs
environment:
- TZ=Europe/Stockholm
- CATALINA_OPTS=-Xms512m -Xmx1024m
- NXMC_SERVER=x.x.x.x #WEB
- NX_SERVER=x.x.x.x #API
restart: unless-stopped
Download war files from netxms and drop them here with the same names as in the picture:
Its quite nice to manage docker with visual code or else you can just start the docker from shell.
http://localhost:8080 is the server running on.
Now you can install another docker like nginx-proxy-manager and let it point to this server.
Good luck.