Change the path to the public directory reported by Discourse
to its real path instead of the symlink in the store, since
the store path won't be matched by any nginx rules.
Fixes#142528.
(cherry picked from commit 1fb77e822b87b0ca729c007e63166c7d2d38e947)