Known problems and fixes
Common problems with the AtGlance CLI and the Management Console, and how to solve them.
The console works on IP:8000, but on my domain the page loads without styles or logo Management Console Linux, Windows #reverse proxy #custom domain #https
What you see: http://<server-ip>:8000 looks fine. https://<your-domain> shows plain text, no colours, no logo. A reverse proxy on the server (aaPanel, nginx, Apache) forwards the domain to port 8000.
Cause: the proxy does not pass the real host name and HTTPS to the console, so the page links its styles to http://localhost or http://127.0.0.1:8000, which the browser cannot load.
Check which address the page uses.
Linux:
curl -s https://<your-domain>/ | grep -o 'href="[^"]*atglance.css[^"]*"'
Windows (PowerShell):
(Invoke-WebRequest https://<your-domain>/ -UseBasicParsing).Content | Select-String 'href="[^"]*atglance.css[^"]*"' | ForEach-Object { $_.Matches.Value }
It should start with https://<your-domain>/. If it shows localhost, 127.0.0.1 or http://, follow these steps.
1. Pass the host name and HTTPS through the proxy
nginx: use this location block in the site config, then run nginx -t && nginx -s reload.
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}
aaPanel: open the site, Reverse proxy, then edit the proxy for /:
- Reverse proxy tab: keep the target
http://127.0.0.1:8000and set Send Host to$host. Save. - Config tab: paste the three lines below and save. Leave out X-Forwarded-For; aaPanel already sets it.
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
Apache: in the HTTPS virtual host, next to ProxyPass / http://127.0.0.1:8000/, add:
ProxyPreserveHost On
RequestHeader set X-Forwarded-Proto "https"
2. Let the console trust the proxy
The proxy reaches the console from the Docker network, which it does not trust by default. Run on the server.
Linux:
docker exec ce-atglance-app sh -c 'echo "ATGLANCE_TRUSTED_PROXIES=127.0.0.1,::1,172.16.0.0/12" >> /app/storage/.env'
cd /opt/atglance && docker compose restart app worker scheduler
Windows (PowerShell):
docker exec ce-atglance-app sh -c 'echo "ATGLANCE_TRUSTED_PROXIES=127.0.0.1,::1,172.16.0.0/12" >> /app/storage/.env'
cd C:\ProgramData\AtGlance; docker compose restart app worker scheduler
3. Set the domain in the console
Log in on http://<server-ip>:8000 as the super admin:
- Site Settings → Plugins: turn on Custom Domain & HTTPS.
- Site → Access URL: enter your domain, without
http://and without a port. - HTTPS: choose Handled by my platform, because your proxy holds the certificate. Save.
4. Check again
Run the check command again. It should now show https://<your-domain>/css/atglance.css. Reload the page with Ctrl+F5.
Servers running the atglance CLI still connect on port 8002 of the same host. Keep that port open; the domain only fronts the web console.