Some more info in UI

This commit is contained in:
Citlali del Rey 2022-11-11 12:36:16 -08:00
parent 3af98bda0a
commit 0a3b412d17
Signed by: nullobsi
GPG Key ID: 933A1F44222C2634
2 changed files with 19 additions and 2 deletions

View File

@ -11,8 +11,6 @@
</p>
% }
% if (scalar @$tokens == 0) {
<p>Seems like there's nothing here.</p>
% } else {
@ -37,3 +35,13 @@
<a href="/my/tokens/generate">
Generate Token
</a>
<p>
To use this pinning service with your local IPFS node, point
your IPFS node at the endpoint <b><%= url_for('/api')->to_abs %></b>
and give it the generated access token.
<br>
</p>
<p>
<a href="https://docs.ipfs.tech/how-to/work-with-pinning-services/">More info on pinning</a>
</p>

View File

@ -37,3 +37,12 @@ Alternatively, import an existing CID:
%= submit_button 'Upload!'
<input hidden type="text" name="is_browser" value="Yes">
% end
<p>
You can also do uploads from the CLI. Add an access token and do the following:
</p>
<pre>
$ curl -H "Authorization: Bearer ..." -F file=@/my/file <%= url_for->to_abs %>
<%= config->{ipfs}->{gatewayPubUrl} %>Qm...
</pre>