Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UCC
quovadis
Commits
9ac5f5d4
Commit
9ac5f5d4
authored
Feb 08, 2021
by
Mark Tearle
Browse files
Fix API paths
parent
88f17621
Changes
2
Show whitespace changes
Inline
Side-by-side
quovadis/quovadis.php
View file @
9ac5f5d4
...
@@ -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;
...
...
scripts/certbot-hook-quovadis.sh
View file @
9ac5f5d4
...
@@ -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"
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment