Are user rules that force users to participate in ipfs legal?

I put a lot of my application data in ipfs. I want my mandatory users to participate in ipfs to lighten the load on the server. I wonder if this kind of regulation is legal in Europe, USA, Canada, etc.?

This kind of regulation is probably legal in mainland China (I have not done detailed research, and there are few relevant laws in mainland China).