Daml gRPC limit

Hello, while attempting to upload a dar generated with the daml upgrade tool we are encountering the following issue:

An exception was thrown during the upload-dar command
- GRPCIOTimeout
One reason for this to occur is if the size of DAR file being uploaded exceeds the gRPC maximum message size. The default value for this is 4Mb, but it may be increased when the ledger is (re)started. Please check with your ledger operator.

We generated the dar with the tool version 2.1.6 and 2.5.4 and experienced this issue with both versions. How can we increase the gRPC limit both for a damlhub ledger and a sandbox ledger or is there another workaround?

For the Sandbox, does it help to start the Sandbox with this configuration set?

daml sandbox -C canton.participants.sandbox.ledger-api.max-inbound-message-size=20971520

HT: @asarpeshkar