amazonlinux-2 repository not working with HTTPS for nginx, because mirrorlist returns http url

0

We want to only allow https in our AWS network, and not unencrypted http. So we switched to us https for yum upgrade, by changing: /etc/yum.conf sslverify=1

/etc/yum/vars/awsproto From http to https

/etc/yum/vars/amazonlinux amazonlinux-2-repos-eu-central-1.s3

That works, except for the nginx extras. nginx mirror list: https://amazonlinux-2-repos-eu-central-1.s3.eu-central-1.amazonaws.com/2/extras/nginx1.12/latest/x86_64/mirror.list returns a http url, instead of a https. And since we only allow https outbound connections, yum check-update and other yum commands fail.

http://amazonlinux.eu-central-1.amazonaws.com/2/extras/nginx1.12/1.12.2/x86_64/16cfcd22c8b6d22eb76ebcf21cfac836583e70557ae5c0207effa6065faf2c92/repodata/repomd.xml?instance_id=i-0fff97e7940945d70&region=eu-central-1: [Errno 12] Timeout on http://amazonlinux.eu-central-1.amazonaws.com/2/extras/nginx1.12/1.12.2/x86_64/16cfcd22c8b6d22eb76ebcf21cfac836583e70557ae5c0207effa6065faf2c92/repodata/repomd.xml?instance_id=i-0fff97e7940945d70&region=eu-central-1: (28, 'Failed to connect to amazonlinux.eu-central-1.amazonaws.com port 80: Connection timed out')
Trying other mirror.

If we disable the extras repo for nginx, it works as expected.

Can you please fix that? Thx.

MS
질문됨 2년 전78회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠