How can I see all current settings for Discourse?

The environment variables will be access by the Rails app, you can override any environment variable declared in this file, in my guess.

And perhaps you may also want to explore this: