Backup commit

This commit is contained in:
2022-11-08 19:35:10 +01:00
parent 6d52e83732
commit b1094768aa
2 changed files with 5 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ For usage, see `about.html`
| -------- | ------- | | -------- | ------- |
| PORT | 8080 | | PORT | 8080 |
| DATA_DIR | ./data | | DATA_DIR | ./data |
| URL_PREFIX | "" | | PREFIX | "" |
## Setup ## Setup
Place the about.html file from this folder in the same folder as the binary Place the about.html file from this folder in the same folder as the binary

View File

@@ -24,12 +24,12 @@
Post /to/{id}: Create new link (plain text raw body) and return requested key if available, else random generated key Post /to/{id}: Create new link (plain text raw body) and return requested key if available, else random generated key
FROM TERMINAL FROM TERMINAL
Pipe your input into: curl -F 'content=<-' paste.plabble.org -w '\n' Pipe your input into: curl -F 'content=<-' https://paste.plabble.org -w '\n'
Or post it as raw data like: curl paste.plabble.org -H 'Content-Type: text/plain' -d @- -w '\n' Or post it as raw data like: curl https://paste.plabble.org -H 'Content-Type: text/plain' -d @- -w '\n'
You can create an alias for this! To get the result: curl paste.plabble.org/YOURID You can create an alias for this! To get the result: curl https://paste.plabble.org/YOURID
For links: For links:
Pipe your input into: curl -F 'link=<-' paste.plabble.org/to -w '\n' Pipe your input into: curl -F 'link=<-' https://paste.plabble.org/to -w '\n'
</pre> </pre>
</body> </body>
</html> </html>