Securing your connection to your GPU server is a key consideration for every developer. Ensuring your work is accessible while maintaining security is important as you develop the next big AI thing!
This template provides a lightweight way for clients to expose an internal service (HTTP or WebSocket) to the public internet through the Trooper.AI router system. It automatically creates a secure HTTPS endpoint with a free SSL certificate, while forwarding traffic to any internal port on the client’s machine.
The goal is simplicity: install a small proxy, specify two ports, and instantly get a secure, externally reachable URL.
All traffic from the Webproxy’s SSL Endpoint to your machine’s public port is routed internally, completely bypassing the internet. This is a significant security advantage of Trooper.AI.
Your internal service becomes available under a *.secure.trooper.ai subdomain, routed through the Trooper.AI infrastructure with automatic SSL certificates.
The template forwards both standard HTTP traffic and WebSocket connections without additional configuration.
If a username and password are provided, the endpoint is secured with Basic Auth. Leaving both values empty disables authentication.
The configuration generates a dedicated proxy endpoint, listens on a chosen port, and forwards everything to your internal service.
You only set template configuration before installation.
The external port will be assigned automatically and displayed next to the template name, just like with other templates.
/etc/nginx/sites-available/trooperai-webproxy-<external_port>http://127.0.0.1:<internal_port>.Once active, Trooper.AI’s router detects the exposed port, issues a free SSL certificate, and publishes your secure endpoint.
Given a Trooper.AI-assigned domain such as:
myapp123-husky-delta.secure.trooper.ai
and a publicly available port within your configured range (e.g., 12345), with an internal service listening on port 8080,
the connection flow will be: 8080 -> 12345 -> https://myapp123-husky-delta.secure.trooper.ai.
This securely forwards traffic from the public HTTPS endpoint to your internal service.