Skip to content

Commit d3c73eb

Browse files
committed
moving...
Signed-off-by: Yonle <[email protected]>
1 parent 2a0c641 commit d3c73eb

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ npm install -g bostr
4040
or via git:
4141

4242
```
43-
npm install -g https://github.com/Yonle/bostr.git
43+
npm install -g https://codeberg.org/Yonle/bostr.git
4444
```
4545

4646
You will need to make config with the following command:
@@ -67,7 +67,7 @@ When configuring reverse proxy, Ensure that `x-forwarded-proto` header was set a
6767
### Source code
6868

6969
```
70-
git clone -b stable https://github.com/Yonle/bostr
70+
git clone -b stable https://codeberg.org/Yonle/bostr
7171
cd bostr
7272
npm install
7373
```
@@ -89,7 +89,7 @@ When configuring reverse proxy, Ensure that `x-forwarded-proto` header was set a
8989

9090
### Docker
9191
```
92-
git clone https://github.com/Yonle/bostr
92+
git clone https://codeberg.org/Yonle/bostr
9393
cd bostr
9494
cp config.js.example config.js
9595
```
@@ -106,7 +106,7 @@ docker run --rm --name bostr -p 8080:8080 -v ./config.js:/usr/src/app/config.js
106106

107107
### Bun runtime
108108
```
109-
git clone -b stable https://github.com/Yonle/bostr
109+
git clone -b stable https://codeberg.org/Yonle/bostr
110110
cd bostr
111111
bun install
112112
```

bostr_cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function showHelp() {
1919
" testworker [conffile] - Test worker with specified bostr config\n" +
2020
" help - Show this help text\n\n" +
2121
"Software is licensed under BSD-3-Clause\n" +
22-
"https://github.com/Yonle/bostr"
22+
"https://codeberg.org/Yonle/bostr"
2323
);
2424
}
2525

config.js.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ module.exports = {
146146
"pubkey": "0000000000000000000000000000000000000000000000000000000000000000",
147147
"description": "Nostr relay bouncer",
148148
"name": "Bostr",
149-
"software": "git+https://github.com/Yonle/bostr",
149+
"software": "git+https://codeberg.org/Yonle/bostr",
150150
"canonical_url": "wss://bostr.example.com",
151151

152152
// Some nostr client may read the following for compatibility check.

http.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if (!config.relays?.length) (async () => {
3333
console.log("Load balancer mode. Fetching relays list from", config.loadbalancer[0].replace(/^ws/, "http"));
3434
const request = await undici.request(config.loadbalancer[0].replace(/^ws/, "http"), {
3535
headers: {
36-
"User-Agent": `Bostr ${version}; The nostr relay bouncer; https://github.com/Yonle/bostr; ${config.server_meta.canonical_url || "No canonical bouncer URL specified"}; Contact: ${config.server_meta.contact}`
36+
"User-Agent": `Bostr ${version}; The nostr relay bouncer; https://codeberg.org/Yonle/bostr; ${config.server_meta.canonical_url || "No canonical bouncer URL specified"}; Contact: ${config.server_meta.contact}`
3737
}
3838
});
3939

@@ -139,7 +139,7 @@ server.on('request', (req, res) => {
139139
res.write(`\n ${serverAddr}?save=1`);
140140
res.write(`\n (Saves bandwidth usage)`);
141141
res.write(`\n\nAdministrator Contact: ${config.server_meta.contact}`);
142-
res.end(`\n\n---\nPowered by Bostr (${version}) - Open source Nostr bouncer\nhttps://github.com/Yonle/bostr`);
142+
res.end(`\n\n---\nPowered by Bostr (${version}) - Open source Nostr bouncer\nhttps://codeberg.org/Yonle/bostr`);
143143
} else if (req.url.includes("favicon") && favicon) {
144144
res.writeHead(200, { "Content-Type": "image/" + config.favicon?.split(".").pop() });
145145
res.end(favicon);

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"repository": {
1414
"type": "git",
15-
"url": "git+ssh://git@github.com/Yonle/bostr.git"
15+
"url": "git+ssh://git@codeberg.org/Yonle/bostr.git"
1616
},
1717
"keywords": [
1818
"nostr",
@@ -23,9 +23,9 @@
2323
"author": "Yonle <[email protected]>",
2424
"license": "BSD-3-Clause",
2525
"bugs": {
26-
"url": "https://github.com/Yonle/bostr/issues"
26+
"url": "https://codeberg.org/Yonle/bostr/issues"
2727
},
28-
"homepage": "https://github.com/Yonle/bostr#readme",
28+
"homepage": "https://codeberg.org/Yonle/bostr#readme",
2929
"dependencies": {
3030
"nostr-tools": "^2.5.2",
3131
"undici": "^6.17.0",

worker_bouncer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ class Session extends WebSocket {
292292
if (!stats[addr]) stats[addr] = { raw_rx: 0, rx: 0, tx: 0, f: 0 };
293293
super(addr, {
294294
headers: {
295-
"User-Agent": `Bostr ${version}; The nostr relay bouncer; https://github.com/Yonle/bostr; ConnID: ${id}; ${server_meta.canonical_url || "No canonical bouncer URL specified"}; Contact: ${server_meta.contact}`,
295+
"User-Agent": `Bostr ${version}; The nostr relay bouncer; https://codeberg.org/Yonle/bostr; ConnID: ${id}; ${server_meta.canonical_url || "No canonical bouncer URL specified"}; Contact: ${server_meta.contact}`,
296296
}
297297
});
298298

0 commit comments

Comments
 (0)