File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -36,17 +36,20 @@ You are free to deploy the pastebin on your own domain if you host your domain o
3636
37372 . 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
41414 . 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
5255If 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
6063Now 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
6467HTTP basic auth is required
6568
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ id = "cc398e983a234aa19de5ea6af571a483" # id of your KV namespace
2626# must be consistent with your routes
2727BASE_URL = " https://shz.al"
2828
29- # url to repo, displayed in index page
29+ # url to repo, displayed in the index page
3030REPO = " https://github.com/SharzyL/pastebin-worker"
3131
32- # url to favicon
32+ # url to the favicon
3333FAVICON = " https://sharzy.in/favicon-32x32.png"
3434
3535# the name displayed in TOS
You can’t perform that action at this time.
0 commit comments