Commit 9ac5f5d4 authored by Mark Tearle's avatar Mark Tearle
Browse files

Fix API paths

parent 88f17621
...@@ -156,13 +156,13 @@ Quovadis ...@@ -156,13 +156,13 @@ Quovadis
UCC DNS Helper UCC DNS Helper
Your API key is: $api_key; Your API key is: $api_key
Rough API usage is: Rough API usage is:
curl -X POST -d username=accmurphy https://quovadis.ucc.asn.au/register curl -X POST -d username=accmurphy https://quovadis.ucc.asn.au/quovadis/register
curl -X POST -d username=accmurphy -d api_key=foo -d new_api_key=bar https://quovadis.ucc.asn.au/update-api-key curl -X POST -d username=accmurphy -d api_key=foo -d new_api_key=bar https://quovadis.ucc.asn.au/quovadis/update-api-key
curl -X POST -d username=accmurphy -d api_key=foo -d challenge=thingy -d value=123456abcdef https://quovadis.ucc.asn.au/update-challenge curl -X POST -d username=accmurphy -d api_key=foo -d challenge=thingy -d value=123456abcdef https://quovadis.ucc.asn.au/quovadis/update-challenge
END; END;
// In case any of our lines are larger than 70 characters, we should use wordwrap() // In case any of our lines are larger than 70 characters, we should use wordwrap()
...@@ -190,9 +190,9 @@ Rough API usage is: ...@@ -190,9 +190,9 @@ Rough API usage is:
</p> </p>
<pre> <pre>
curl -X POST -d username=accmurphy https://quovadis.ucc.asn.au/register curl -X POST -d username=accmurphy https://quovadis.ucc.asn.au/quovadis/register
curl -X POST -d username=accmurphy -d api_key=foo -d new_api_key=bar https://quovadis.ucc.asn.au/update-api-key curl -X POST -d username=accmurphy -d api_key=foo -d new_api_key=bar https://quovadis.ucc.asn.au/quovadis/update-api-key
curl -X POST -d username=accmurphy -d api_key=foo -d challenge=thingy -d value=123456abcdef https://quovadis.ucc.asn.au/update-challenge curl -X POST -d username=accmurphy -d api_key=foo -d challenge=thingy -d value=123456abcdef https://quovadis.ucc.asn.au/quovadis/update-challenge
</pre> </pre>
END; END;
......
...@@ -47,7 +47,7 @@ fi ...@@ -47,7 +47,7 @@ fi
# Strip only the top domain to get the zone id # Strip only the top domain to get the zone id
DOMAIN=$(expr match "$CERTBOT_DOMAIN" '\(.*\)\.ucc\..*') DOMAIN=$(expr match "$CERTBOT_DOMAIN" '\(.*\)\.ucc\..*')
BASE_API="${BASE_API:-https://quovadis.ucc.asn.au/}" BASE_API="${BASE_API:-https://quovadis.ucc.asn.au/quovadis}"
# Create TXT record # Create TXT record
RECORD_ID=$(curl -s -X POST "$BASE_API/update-challenge" \ RECORD_ID=$(curl -s -X POST "$BASE_API/update-challenge" \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment