@@ -144,7 +144,7 @@ API keys can only access workspaces that the user belongs to. If you need to acc
144144```json
145145{
146146 "error": {
147- "code": "FORBIDDEN",
147+ "code": "FORBIDDEN",
148148 "message": "Insufficient access"
149149 }
150150}
@@ -276,11 +276,11 @@ initOpenapiSDK('https://your-tianji-domain.com', {
276276async function getSystemConfig() {
277277 try {
278278 const config = await openApiClient.GlobalService.globalConfig();
279-
279+
280280 console.log('Allow registration:', config.allowRegister);
281281 console.log('AI features enabled:', config.enableAI);
282282 console.log('Billing enabled:', config.enableBilling);
283-
283+
284284 return config;
285285 } catch (error) {
286286 console.error('Failed to get system configuration:', error);
@@ -464,7 +464,7 @@ ALLOW_OPENAPI=true
464464
465465## Prepare Database struct
466466
467- Now you can visit database, and you can visit
467+ Now you can visit database, and you can visit
468468
469469```bash
470470cd src/server && pnpm db:migrate:apply
@@ -518,7 +518,7 @@ initTianjiTracker({
518518 url: backendUrl,
519519 websiteId,
520520});
521-
521+
522522reportEvent('Demo Event', {
523523 foo: 'bar',
524524});
@@ -935,7 +935,7 @@ Now you can search tianji with `helm search` command.
935935helm search repo tianji
936936```
937937
938- ## Install
938+ ## Install
939939
940940Then, feel free to install with one command:
941941
@@ -986,7 +986,7 @@ JWT_SECRET="replace-me-with-a-random-string"
986986
987987Make sure your database url is correct. and dont remember create database before.
988988
989- For more environment can check this document [environment](.. /environment.md)
989+ For more environment can check this document [environment](./environment.md)
990990
991991> if you can, better to make sure your encoding is en_US.utf8, for example: `createdb -E UTF8 -l en_US.utf8 tianji`
992992
@@ -1080,26 +1080,26 @@ you can fill the form quickly to install.
10801080
10811081and only just need to wait for a moment. then you can open your own Tianji in your browser.
10821082
1083- > Url: `http://<your-ip>:12345`
1084- > Default username: `admin`
1083+ > Url: `http://<your-ip>:12345`
1084+ > Default username: `admin`
10851085> Default password: `admin`
10861086
10871087
10881088===== FILE: docs/install/telemetry.md =====
10891089
10901090# Telemetry
10911091
1092- ## About Anonymous Telemetry
1092+ ## About Anonymous Telemetry
10931093
1094- To enhance the user experience, we have **enabled anonymous telemetry by default** in your self-hosted Tianji service.
1094+ To enhance the user experience, we have **enabled anonymous telemetry by default** in your self-hosted Tianji service.
10951095
1096- We understand that data privacy is important to you. Rest assured, this telemetry has the following characteristics:
1096+ We understand that data privacy is important to you. Rest assured, this telemetry has the following characteristics:
10971097
1098- - **Completely Anonymous**: We do not collect any personally identifiable information or service content.
1099- - **Extremely Limited Scope**: It only includes basic usage data, helping us minimally understand Tianji's usage to continuously improve the product.
1100- - **Fully Transparent**: All telemetry data transmissions can be observed in your service’s network panel, ensuring complete transparency.
1098+ - **Completely Anonymous**: We do not collect any personally identifiable information or service content.
1099+ - **Extremely Limited Scope**: It only includes basic usage data, helping us minimally understand Tianji's usage to continuously improve the product.
1100+ - **Fully Transparent**: All telemetry data transmissions can be observed in your service’s network panel, ensuring complete transparency.
11011101
1102- Additionally, we fully respect your choice. If you prefer to **disable anonymous telemetry entirely**, simply set the following environment variable:
1102+ Additionally, we fully respect your choice. If you prefer to **disable anonymous telemetry entirely**, simply set the following environment variable:
11031103
11041104```bash
11051105DISABLE_ANONYMOUS_TELEMETRY=1
@@ -1501,8 +1501,8 @@ done
15011501// Send heartbeat every 60 seconds
15021502setInterval(async () => {
15031503 try {
1504- await fetch('https://tianji.example.com/api/push/<your-push-token>', {
1505- method: 'POST'
1504+ await fetch('https://tianji.example.com/api/push/<your-push-token>', {
1505+ method: 'POST'
15061506 });
15071507 console.log('Heartbeat sent successfully');
15081508 } catch (error) {
@@ -1564,7 +1564,7 @@ class ServiceMonitor:
15641564 def __init__(self, push_url):
15651565 self.push_url = push_url
15661566 self.running = True
1567-
1567+
15681568 def start_heartbeat(self):
15691569 def heartbeat_loop():
15701570 while self.running:
@@ -1573,7 +1573,7 @@ class ServiceMonitor:
15731573 time.sleep(30) # Send every 30 seconds
15741574 except Exception as e:
15751575 print(f"Heartbeat failed: {e}")
1576-
1576+
15771577 thread = threading.Thread(target=heartbeat_loop)
15781578 thread.daemon = True
15791579 thread.start()
@@ -1601,7 +1601,7 @@ def sync_data():
16011601 try:
16021602 # Your data sync logic here
16031603 result = perform_data_sync()
1604-
1604+
16051605 if result.success:
16061606 requests.post(
16071607 'https://tianji.example.com/api/push/<your-push-token>',
@@ -1814,7 +1814,7 @@ its will auto download reporter and create linux service in your machine. so its
18141814if you wanna uninstall reporter service, you can use this command like:
18151815```bash
18161816curl -o- https://tianji.example.com/serverStatus/xxxxxxxxxxxxxxxxxxx/install.sh?url=https://tianji.example.com | sudo bash -s uninstall
1817- ```
1817+ ```
18181818
18191819The main change is to append `-s uninstall` to your install command.
18201820
@@ -1902,9 +1902,9 @@ router.get(
19021902 const ip = req.ip;
19031903 const referer = req.header['referer'];
19041904 const userAgent = req.headers['user-agent'];
1905-
1905+
19061906 // Store it in your database
1907-
1907+
19081908 const blankGifBuffer = Buffer.from(
19091909 'R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',
19101910 'base64'
@@ -1918,7 +1918,7 @@ If you prefer not to develop your own solution, I recommend Tianji. As an open-s
19181918
19191919
19201920
1921- GitHub: [https://github.com/msgbyte/tianji](https://github.com/msgbyte/tianji)
1921+ GitHub: [https://github.com/msgbyte/tianji](https://github.com/msgbyte/tianji)
19221922
19231923Official Website: [https://tianji.msgbyte.com/](https://tianji.msgbyte.com/)
19241924
@@ -2228,15 +2228,15 @@ We use your personal data to:
22282228
22292229- **Provide, Improve, and Develop the Platform**: We process your data primarily to ensure the proper functioning of our website. We may also use your data to improve our website and offer you the best possible experience. Specifically, we:
22302230 - Operate and maintain your `tianji.msgbye.com` account, allowing you to access and use the Platform. Your email address and password are used to identify you when you log in.
2231-
2231+
22322232- **Maintain a Safe and Secure Environment**: We process your data to enhance the security of our Platform, ensuring a safe experience for all users.
22332233
22342234## How We Share Your Personal Data
22352235
22362236We do not sell your personal data to external parties.
22372237
22382238- **Through Your Profile**: Any personal data you choose to disclose in your public profile on `tianji.msgbye.com` will be visible to other users. They may view your profile information and interact with any public prompts you share.
2239-
2239+
22402240- **Compliance with Laws**: We may disclose your personal data to courts, law enforcement agencies, or government authorities if required to:
22412241 - Comply with legal obligations or processes.
22422242 - Respond to claims against `tianji.msgbye.com`.
@@ -2251,4 +2251,3 @@ We do not sell your personal data to external parties.
22512251## Contact Information
22522252
22532253For questions or complaints about this Privacy Policy or our practices, please contact us by email at `
[email protected] `.
2254-
0 commit comments