Skip to content

Commit

Permalink
authorization header
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-f committed Sep 18, 2022
1 parent cdf8cb4 commit 83f31c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/xo-server/docs/vm-sync-hook.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ If the request fails for any reason, XO will go ahead with snapshot immediately.

```http
GET /sync HTTP/1.1
Authorization: Bearer dW5pcXVlIGxvbmcgc3RyaW5nIHRvIGVuc3VyZSB0aGUgcmVxdWVzdCBjb21lcyBmcm9tIFhP
```

When the snapshot is finished, another request will be sent:

```http
GET /post-sync HTTP/1.1
Authorization: Bearer dW5pcXVlIGxvbmcgc3RyaW5nIHRvIGVuc3VyZSB0aGUgcmVxdWVzdCBjb21lcyBmcm9tIFhP
```

The created snapshot will have the special `xo:synced` tag set to make it identifiable.
Expand Down

0 comments on commit 83f31c0

Please sign in to comment.