CiscoCloud / marathon-consul

bridge Marathon information to Consul KV
Apache License 2.0
85 stars 18 forks source link

Basic auth is not working #26

Closed sujithvs-dev closed 6 years ago

sujithvs-dev commented 6 years ago

My consul server is behind a reverse proxy and I am passing below arguments to marathon-consul for consul auth. But it is not getting authenticated, can somebody please take a look.

  "args": [
    "--registry=http://172.28.58.230:8500",
    "--registry-auth=admin:$apr1$0xUM.ti7$dQuRPxHFuNH42LK1iqcMR1",
    "--marathon-location=dev.marathon.example.com:443",
    "--marathon-protocol=https",
    "--marathon-username=marathon",
    "--marathon-password=marathon123"
  ]

Error:

time="2018-01-11T12:08:57Z" level=error msg="body generated error" error="Unexpected response code: 401 (<html>
<head><title>401 Authorization Required</title></head>
<body bgcolor="white">
<center><h1>401 Authorization Required</h1></center>
<hr><center>nginx/1.10.1</center>
</body>
</html>
)" eventType="status_update_event" 
time="2018-01-11T12:08:57Z" level=info msg="handling event" eventType="status_update_event" 
time="2018-01-11T12:08:57Z" level=error msg="body generated error" error="Unexpected response code: 401 (<html>
<head><title>401 Authorization Required</title></head>
<body bgcolor="white">
<center><h1>401 Authorization Required</h1></center>
<hr><center>nginx/1.10.1</center>