Skip to content

Commit efc882e

Browse files
committed
doc: clarify login steps
1 parent 20f33ad commit efc882e

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,20 @@ You are free to deploy the pastebin on your own domain if you host your domain o
3636

3737
2. Create a KV namespace on Cloudflare workers dashboard, remember its ID.
3838

39-
3. Clone the repository and enter the directory. Login to your Cloudflare account with `wrangler login`.
39+
3. Clone the repository and enter the directory.
4040

4141
4. Modify entries in `wrangler.toml`. Its comments will tell you how.
4242

43-
5. Deploy and enjoy!
43+
5. Login to Cloudflare and deploy with the following steps:
4444

45-
```shell
45+
```console
4646
$ yarn install
47+
$ yarn wrangler login
4748
$ yarn deploy
4849
```
4950

51+
6. Enjoy!
52+
5053
## Auth
5154

5255
If you want a private deployment (only you can upload paste, but everyone can read the paste), add the following entry to your `wrangler.toml`.
@@ -59,7 +62,7 @@ user2 = "passwd2"
5962

6063
Now every access to POST request, and every access to static pages, requires an HTTP basic auth with the user-password pair listed above. For example:
6164

62-
```shell
65+
```console
6366
$ curl example-pb.com
6467
HTTP basic auth is required
6568

wrangler.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ id = "cc398e983a234aa19de5ea6af571a483" # id of your KV namespace
2626
# must be consistent with your routes
2727
BASE_URL = "https://shz.al"
2828

29-
# url to repo, displayed in index page
29+
# url to repo, displayed in the index page
3030
REPO = "https://github.com/SharzyL/pastebin-worker"
3131

32-
# url to favicon
32+
# url to the favicon
3333
FAVICON = "https://sharzy.in/favicon-32x32.png"
3434

3535
# the name displayed in TOS

0 commit comments

Comments
 (0)