How to configure proxy setting for s3 repository plugins

Sorry, my mistake here. Actually, you need to add the following to elasticsearch.yml (not using the API as I stated, sorry for this):

s3.client.default.proxy.host: <proxy_ip>
s3.client.default.proxy.port: <proxy_port>