Asset download url is http but nexus3 is in https

Hello There,

we are using nexus 3.41.1 version and it is working on https but when I do https://nexusserver.com/nexus3/service/rest/v1/search/assets

its give asset download url as http {
“items” : [ {
“downloadUrl” : “http:///nexuserver.com/nexus3/repository/test-gitlfs/66a8784b55173f8ebc4330dd9XXXXXXX0a806c328332e7d93b053c309dfb”,
“path” : “66a8784b55173f8ebc4330dd9XXXXXXXa806c328332e7d93b053c309dfb”,
“id” : “dGVzdC1naXRsZnM6NzFhZmVhNTQwZTIzZGRlXXXXXXXJhNjg1NGQwNDc”,
“repository” : “test-gitlfs”,
“format” : “gitlfs”,
“checksum” : {
“sha1” : “aacd4edd23b0abe042aa5XXXXX0f4af0f629d”,
“sha256” : “66a8784b55173f8ebc4330dd92XXXXXXX806c328332e7d93b053c309dfb”,
“md5” : “7bf40e2dfc623904df24XXXXXX391aae9”
},
“contentType” : “application/octet-stream”,
“lastModified” : “2019-10-01T13:32:00.296+00:00”,
“lastDownloaded” : null,
“uploader” : “obethery”,
“uploaderIp” : “10.70.88.118”,
“fileSize” : 0
}, {
“downloadUrl” : “http://nexuserver.com/nexus3/repository/maven-snapshots/com/XXXX/XXXX-feature-7.0.0-20221130.165658-1-debug.apk”,
“path” : “XXXX/XXXX-feature-7.0.0-20221130.165658-1-debug.apk”,
“id” : “bWF2ZW4tc25hcHNob3RzOjI3ZmVmMzMyZXXXXXjMjk0ZWQzMmU5ZWRkZTM2”,
“repository” : “maven-snapshots”,
“format” : “maven2”,
“checksum” : {
“sha1” : “44ee3cbee4c2e25033431ac3XXXXXa49fbf221”,
“sha256” : “43505db20714b64e85746db6642bfa24abafXXXXXX239f9d9006ba9446714e5”,
“sha512” : “564b3929418d6a3704914ee30b6XXXXXXX768ec7c7d895a59fbee679690c94d2e6cce4aafe6a18650aa57345f899f48551e3152df32916d722a24d4f45d1b”,
“md5” : “4d2d6c67840d44ec4XXXXXd7757df114”
},

Can you please guide what is causing this,

regards,
SAM

If you have a proxy server in front of Nexus ensure you have configured it correctly.