[Self-Hosted]Admin Interface Is Not Accessible When Running on a Non-Standard Port (non-443)

(#618) Bug Fixed self-hosting

Thread

Comment by @ajsnyde
RexSystem 1 vote Merged from #685 originally by @ajsnyde on GitHub
I'm also having issues that may be related to this when using flux on a non-default port. I feels related, but when initially creating an admin account on an instance, the networking tab shows a 200: image But immediately shows a 401({"code":"UNAUTHORIZED","message":"Unauthorized."}) for any related login etc and refreshes the page back to the 'create an admin' prompt: image I can't use the new admin user, but the email shows as already used in subsequent account creation forms. Relevant logs:
api-1               | {"level":"warn","time":"2026-09-08T15:12:23.254Z","service":"fluxer-api","env":"production","domain":"asdf.asdf","code":"ESERVFAIL","error":{"type":"Error","message":"queryMx ESERVFAIL asdf.asdf","stack":"Error: queryMx ESERVFAIL asdf.asdf\n    at QueryReqWrap.onresolve [as oncomplete] (node:internal/dns/promises:297:17)","code":"ESERVFAIL","syscall":"queryMx","hostname":"asdf.asdf"},"msg":"Email DNS lookup failed with a transient error, allowing request"}
api-1               | {"level":"info","time":"2026-09-08T15:12:23.422Z","service":"fluxer-api","env":"production","method":"POST","path":"/v1/auth/register","status":200,"durationMs":529,"msg":"Request completed"}
seaweedfs-1         | I0908 15:10:18.199722 master_server.go:348 snapshot taken to persist TopologyId 61d770ff-257d-4471-b397-796e6fd399df
api-1               | {"level":"info","time":"2026-09-08T15:12:23.462Z","service":"fluxer-api","env":"production","method":"GET","path":"/v1/admin/instance/config","status":401,"durationMs":6,"msg":"Request completed"}
seaweedfs-1         | I0908 15:10:18.277268 volume_grpc_client_to_master.go:71 Volume server start with seed master nodes: [192.168.240.6:9333]
I have FLUXER_EMAIL_ENABLED=false in the .env, so I'm surprised to see the server presumably checking the DNS of the supplied email.
  • 647973850-291e4b07-e89a-4cf5-a7a5-5b7b7554dafb.png

    647973850-291e4b07-e89a-4cf5-a7a5-5b7b7554dafb.png

    1265×1022 | 257 kB

  • 647974376-76f4628e-7637-40e7-a6f9-2bc833d817f6.png

    647974376-76f4628e-7637-40e7-a6f9-2bc833d817f6.png

    2559×1014 | 639 kB