Skip to content

Commit 2c6ff8a

Browse files
committed
deploy
1 parent b6e0f6e commit 2c6ff8a

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: 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
@@ -53,7 +53,7 @@ <h2>Settings</h2>
5353
<div class='label-line'>
5454
<input type='radio' name='url-type' value='short' id='paste-url-short-radio' checked>
5555
<label for='paste-url-short-radio' class='radio-label'>Generate a short random URL</label>
56-
<span class='small-label'>Example: {{BASE_URL}}/BxWH</span>
56+
<span class='small-label'>Example: {{BASE_URL}}/BxW</span>
5757
</div>
5858
<div class='label-line'>
5959
<input type='radio' name='url-type' value='long' id='paste-url-long-radio'>

src/common.js

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-
RAND_LEN : 4,
4+
RAND_LEN : 3,
55
PRIVATE_RAND_LEN : 24,
66
ADMIN_PATH_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
compatibility_flags = [ "nodejs_compat" ]
44

@@ -15,28 +15,28 @@ rules = [
1515

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

2121
[[kv_namespaces]]
2222
binding = "PB" # do not touch this
23-
id = "cc398e983a234aa19de5ea6af571a483" # id of your KV namespace
23+
id = "e485dfc7728c4c06860741da8a0dfb32" # id of your KV namespace
2424

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

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

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

3535
# the name displayed in TOS
36-
TOS_MAINTAINER = "Sharzy"
36+
TOS_MAINTAINER = "Misaka13514"
3737

3838
# the email displayed in TOS
39-
TOS_MAIL = "pb@shz.al"
39+
TOS_MAIL = "pb@apeiria.net"
4040

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

0 commit comments

Comments
 (0)