This PR ensures the site link that is added to comments uses the protocol expected by the user, based on the FORGE_SSL_REQUIRED environment variable.
The rationale for this approach is to ensure the URL is independent of any SSL provisioning process (which may be successful / pending / failed). This means users requesting a secure URL will never receive an insecure one, even if the SSL cert has not yet finished provisioning or there's some misconfiguration elsewhere.
Closes #96
This PR ensures the site link that is added to comments uses the protocol expected by the user, based on the FORGE_SSL_REQUIRED environment variable.
The rationale for this approach is to ensure the URL is independent of any SSL provisioning process (which may be successful / pending / failed). This means users requesting a secure URL will never receive an insecure one, even if the SSL cert has not yet finished provisioning or there's some misconfiguration elsewhere.