I might be late, but it may help for future forem users,
If you don't want to use www or any subdomain in forem, While installing selfhost, remove {{ forem_subdomain_name }}. line in app_domain at inventory/forem/setup.yml
If you have already installed forem and you want to redirect non www to www or vice versa, then add non www domain at /opt/forem/configs/traefik/dynamic.toml
I might be late, but it may help for future forem users,
If you don't want to use www or any subdomain in forem, While installing selfhost, remove
{{ forem_subdomain_name }}.
line in app_domain at inventory/forem/setup.ymlConvert this line from
to
then it will work.
If you have already installed forem and you want to redirect non www to www or vice versa, then add non www domain at /opt/forem/configs/traefik/dynamic.toml
and redirect non www to www at /opt/forem/configs/nginx.conf
After that it will works fine. i tried it and its works for me