Skip to content

Commit b3444f5

Browse files
committed
deploy
1 parent d20628b commit b3444f5

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: Test and Deploy
22
on:
33
push:
44
branches:
5-
- goshujin
5+
- main
6+
workflow_dispatch:
67

78
jobs:
89
deploy:

frontend/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ <h2>Settings</h2>
9696
<label for="paste-url-short-radio" class="radio-label"
9797
>Generate a short random URL</label
9898
>
99-
<span class="small-label">Example: {{BASE_URL}}/BxWH</span>
99+
<span class="small-label">Example: {{BASE_URL}}/BxW</span>
100100
</div>
101101
<div class="label-line">
102102
<input

src/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const params = {
22
CHAR_GEN: "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",
33
NAME_REGEX: /^[a-zA-Z0-9+_\-[\]*$@,;]{3,}$/,
4-
PASTE_NAME_LEN: 4,
4+
PASTE_NAME_LEN: 3,
55
PRIVATE_PASTE_NAME_LEN: 24,
66
DEFAULT_PASSWD_LEN: 24,
77
SEP: ":",

wrangler.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name = "pb"
1+
name = "pastebin"
22
compatibility_date = "2023-01-28"
33

44
workers_dev = false
@@ -16,28 +16,28 @@ fallthrough = true
1616

1717
[[routes]]
1818
# Refer to https://developers.cloudflare.com/workers/wrangler/configuration/#routes
19-
pattern = "shz.al"
19+
pattern = "p.apeiria.net"
2020
custom_domain = true
2121

2222
[[kv_namespaces]]
2323
binding = "PB" # do not touch this
24-
id = "435f8959b9de485ea48751ba557d90f5" # id of your KV namespace
24+
id = "e485dfc7728c4c06860741da8a0dfb32" # id of your KV namespace
2525

2626
[vars]
2727
# must be consistent with your routes
28-
BASE_URL = "https://shz.al"
28+
BASE_URL = "https://p.apeiria.net"
2929

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

33-
# url to the favicon
34-
FAVICON = "https://sharzy.in/favicon-32x32.png"
33+
# url to favicon
34+
FAVICON = "https://blog.apeiria.net/img/favicon-32x32.png"
3535

3636
# the name displayed in TOS
37-
TOS_MAINTAINER = "Sharzy"
37+
TOS_MAINTAINER = "Misaka13514"
3838

3939
# the email displayed in TOS
40-
TOS_MAIL = "pb@shz.al"
40+
TOS_MAIL = "pb@apeiria.net"
4141

4242
# Cache-Control max-age for static pages
4343
CACHE_STATIC_PAGE_AGE = 7200

0 commit comments

Comments
 (0)