Customers can use https://panel.example.com or a dedicated domain such as https://games.example.net instead of https://SERVER-IP:8443. The panel continues listening on its internal HTTPS port; a reverse proxy accepts public HTTPS on port 443 and forwards requests to it. This works with the optional panel homepage, login, server management and subscriptions.
Use a dedicated hostname for the whole application at /. Hosting under a path
such as example.com/panel/ is not supported by this guide: application URLs,
cookies and callbacks use root paths. An existing project website can stay at
example.com, with the panel at panel.example.com.
Before starting
- Keep a working administrator session and the original panel address available.
- Back up the existing web-server configuration. On a shared server, add only a dedicated virtual host; preserve existing websites, mail and certificate renewal.
- Choose the public hostname before a fresh installation where possible. Install
with
--hostname panel.example.com; the installer does not create DNS records or configure the reverse proxy. Do not reinstall an existing manager to rename it. - Identify the dashboard's actual HTTPS port, certificate name and public CA. They may differ from the example port 8443 and the new public hostname.
- Arrange a public certificate and renewal for the new hostname. A self-signed upstream panel certificate does not replace the browser-facing certificate.
1. Create the DNS record
In the DNS provider for your domain, create an A record for panel pointing
to the server's public IPv4 address. For a dedicated domain use the provider's
root-name notation, often @. Add AAAA only if IPv6 actually reaches this
server and its HTTPS listener. Remove or correct stale addresses before testing.
A CNAME can point a subdomain to another hostname that resolves to this server.
DNS does not specify a web port and cannot hide :8443 by itself. Behind a home
router, forward public TCP 80/443 to the reverse-proxy machine. Account for any
upstream NAT or provider firewall. Do not forward agent or relay ports.
If a CDN proxies the website, use its verified HTTPS mode and a valid origin certificate. Game traffic usually needs a separate DNS-only hostname and its own ports; a web proxy does not carry arbitrary game UDP/TCP.
2. Identify the existing internal endpoint
For the default dedicated account and installation, this read-only command prints only the relevant public connection information, not private tokens/keys:
sudo -u gmserver -H python3 <<'PY'
import json
from pathlib import Path
state = json.loads((Path.home() / 'game-manager/state.json').read_text())
for key in ('bind', 'hostname', 'ca_file', 'certificate'):
print(f'{key}: {state.get(key)}')
PY
Use the actual account/path if customized. The upstream port comes from bind.
The upstream TLS name comes from the installed certificate and trusted state; it
need not equal the new public hostname. Preserve the internal health-check TLS
configuration. If that certificate/name is invalid or expired, repair it through
the installation's supported certificate procedure before enabling the proxy.
Do not disable verification or run a fresh install over existing data.
3. If you use Webuzo or another web control panel
Prefer its domain, SSL and reverse-proxy controls:
- Add the dedicated domain/subdomain to the correct website account.
- Issue its public HTTPS certificate and enable renewal using the control panel.
- Configure the hostname's entire root application to proxy to the panel's
existing HTTPS listener, for example
https://127.0.0.1:8443on the same host. - Set the upstream TLS verification name and CA, preserve the public Host header, and allow the upload sizes/timeouts described in the nginx example below.
- Review exact-match root, PHP and static-file locations. A generated
location = /can override a genericlocation /; ensure login, static, API, webhook and callback paths all reach the panel on this dedicated hostname. - Test the configuration, reload through the control panel and check other sites.
Webuzo paths and generated rules vary. Use its supported per-domain custom
configuration; do not replace webuzoVH.conf, a global nginx configuration or
another website's root location with a generic snippet. If exact routes already
exist, review them before adding overlapping locations. Use the example below as
settings guidance, not a replacement for generated virtual hosts.
The old a81 project-homepage connector is not this setup and should not be used: that helper forwards only a few public site routes. A panel domain needs the whole application. Enabling a83's homepage itself requires no nginx change.
4. Example for a standard standalone nginx installation
This example assumes nginx already manages the server, the panel and proxy run
on the same host, and the dedicated name is panel.example.com. It is not an
Apache, Caddy or Webuzo drop-in configuration. Keep whichever web server already
owns ports 80/443; do not install a competing listener over working services.
Create a dedicated nginx virtual host using your distribution's normal method. First configure only this HTTP block and an ACME webroot; it lets an installed Certbot obtain a certificate without taking over other domains:
server {
listen 80;
server_name panel.example.com;
location ^~ /.well-known/acme-challenge/ {
root /var/www/panel-acme;
}
location / { return 301 https://panel.example.com$request_uri; }
}
On stock nginx, after enabling that dedicated virtual host:
sudo mkdir -p /var/www/panel-acme
sudo nginx -t
sudo systemctl reload nginx
sudo certbot certonly --webroot -w /var/www/panel-acme -d panel.example.com
Certbot must already be installed/configured for your distribution. HTTP-01 needs public port 80 and working DNS; use your issuer's DNS challenge if it cannot be opened. Confirm the issuer's renewal service and nginx certificate-reload hook. Do not run these commands against a control-panel-managed certificate setup.
Copy only the panel's public CA certificate to a stable proxy-readable path,
for example /etc/nginx/tls/game-manager-upstream-ca.pem. Use ca_file from the
inspection above; with the default self-signed installation the public certificate
is normally /var/lib/gmserver/panel-tls/panel.crt. Check the actual path first.
Never copy the panel's private key or make its private directories public. A
publicly trusted upstream can instead use the system CA bundle.
After the public certificate exists, add the dedicated HTTPS block:
server {
listen 443 ssl;
server_name panel.example.com;
ssl_certificate /etc/letsencrypt/live/panel.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/panel.example.com/privkey.pem;
client_max_body_size 64m;
location / {
proxy_pass https://127.0.0.1:8443;
proxy_http_version 1.1;
proxy_set_header Host panel.example.com;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Connection "";
proxy_ssl_server_name on;
proxy_ssl_name panel.example.com;
proxy_ssl_trusted_certificate /etc/nginx/tls/game-manager-upstream-ca.pem;
proxy_ssl_verify on;
proxy_ssl_verify_depth 5;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
}
}
Substitute the actual hostname, port, certificate paths and upstream TLS name.
proxy_ssl_name verifies the internal certificate, whereas Host is the
customer-facing name. Keep TLS verification enabled. The application receives
HTTPS on the upstream as well; forwarding headers do not grant permissions.
If the proxy is on another machine, use a private secured connection and permit
only that proxy to reach the dashboard; 127.0.0.1 then refers to the proxy itself.
The 64 MiB request limit accommodates panel file uploads. Backups use chunked uploads, so a multi-gigabyte archive does not need one giant request body. Licensing-site release uploads are a separate service with different limits. Background game/backup jobs still take time; proxy timeouts do not create progress.
Validate before reloading:
sudo nginx -t
sudo systemctl reload nginx
curl -I https://panel.example.com/login
If validation fails, correct the dedicated config before reloading. Preserve a known-good copy so you can restore it, validate and reload without disturbing other domains. A browser certificate warning is not a successful public setup.
5. Match the panel's public URLs and callbacks
Once HTTPS works, use https://panel.example.com consistently, without :8443
or /login, in the panel's Signup & email, Plans & subscriptions → Payment
setup, and Google application settings under Storage setup, where enabled.
Signup and billing public URLs must match. Copy exact callback/webhook addresses
shown by those features into the corresponding provider consoles.
Update Stripe/PayPal live and sandbox webhook destinations and Google OAuth
redirect URIs if the origin changed. Google's Drive callback is
https://panel.example.com/backups/google/callback. Existing Google connections
may need reconnection after configuration changes. Check existing installation
licensing/allowed-domain configuration before retiring an old address. Do not
cancel subscriptions, register another installation or discard customer state
merely to change a web address.
Use a new browser session to test login, verified signup email, a package link, provider return, webhook delivery and a small upload/download. Keep test-mode payments separate from real charges. Cross-origin rejection often means a public URL or forwarded Host mismatch, mixed old/new addresses, or stale browser state; do not weaken CSRF/cookie protections to bypass it.
6. Review firewall and game addresses
After the new URL is verified, restrict direct dashboard access to the proxy as appropriate for your existing bind/firewall design. Keep a documented recovery path. Agent and relay remain private; do not publish Docker sockets. Leave other websites and unrelated services' firewall rules intact.
Open Hosting → Hosting setup and verify the effective game connection host. A panel domain behind a CDN can be unsuitable for players; set the separate game hostname/IP override when needed. The panel displays that host plus the assigned Join port. Public HTTPS on 443 does not remove game ports or open their firewalls. Test a real game-client connection from outside the host.
Common problems
| Symptom | Check |
|---|---|
| Default website instead of panel | DNS, selected virtual host, exact root/static locations and IPv6. |
| 502 / upstream TLS failure | Dashboard health, actual port, CA trust and internal certificate name/expiry. |
| Login/signup cross-origin error | Canonical public URLs and forwarded Host agree; use the new HTTPS origin. |
| Upload returns 413 | Request size at every proxy/CDN layer; do not disable upload validation. |
| Payment succeeds but allowance does not change | Matching provider mode, webhook URL/signing settings and reconciliation. |
| Panel works but game cannot be joined | Game DNS, actual mapped UDP/TCP ports, NAT/firewall and client/version. |
See Host installation, Rental billing and Troubleshooting.
