Limit file size push with SSH

Hi,

I want to limit file size when push. I have limited this size when a user push using GitLab HTTP URL setting nginx[‘client_max_body_size’] to 20 MB. Now I want to limit this file size when a user push using SSH URL ¿How can I do this?

Thank you very much in advance

Marcos.