לא מצליח לגרום ל-Discourse לעבוד על פורטים שונים

That’s probably the HTTP port redirecting to the HTTPS port. (Using the -I flag to curl will show you the redirection target.)

Running curl forum.example.com:10443 should load the site as you expect.