A simple timeline for logging pictures with messages.
950
A simple timeline for logging pictures with messages.
p - Port (default 80)h - Web page header title (default "Timeline")v - Display debug infocrt - File path to certificate for TLSkey - File path to key for TLSposts - Directory path to store poststokens - File path to Bearer tokens separated by new lines for verifying POST requests
firstToken123 # comment
secondToken987 # another comment
host/post with:
Authorization - Contains a valid Bearer token (if necessary)from (author) and message (caption text for image)var request = require("request");
var fs = require("fs");
request({
method: "POST",
url: "http://localhost/post",
headers: {
"authorization": "Bearer token123",
"content-type": "multipart/mixed"
},
multipart: [
{
"content-type": "application/json",
body: JSON.stringify({
"from": "the author",
"message": "the message",
})
},
{
"content-type": "image/jpeg",
body: fs.createReadStream("image.jpg")
}
],
}, function(error, response, body) {
console.log(error, body);
});
Content type
Image
Digest
Size
1.8 MB
Last updated
over 7 years ago
docker pull btbd/timeline