--insecure is primarily used for development of the UI and for running UI behind a proxy which provides TLS and/or authentication.
The issue you’re seeing is due to the fact that GRPC (which is used by Repository Server) requires TLS and starting with --insecure does not support it.