chore: change service && filename rule to "superfrpc_instanceID"
This commit is contained in:
+13
-13
@@ -571,7 +571,7 @@ X-Timestamp: 1704067200000
|
||||
"message": "instance created successfully",
|
||||
"data": {
|
||||
"name": "my_frpc",
|
||||
"configPath": "./configs/superfrpc_user_my_frpc.toml",
|
||||
"configPath": "./configs/superfrpc_1.toml",
|
||||
"bootAtStart": true
|
||||
}
|
||||
}
|
||||
@@ -675,7 +675,7 @@ Modify fields in the `[common]` section of the frpc configuration file. Only `[c
|
||||
"message": "Config file modified successfully",
|
||||
"data": {
|
||||
"instanceID": 1,
|
||||
"configPath": "./configs/superfrpc_user_my_frpc.toml"
|
||||
"configPath": "./configs/superfrpc_1.toml"
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -712,7 +712,7 @@ Modify system-level settings such as instance name, boot-at-start configuration,
|
||||
"message": "System config modified successfully",
|
||||
"data": {
|
||||
"instanceID": 1,
|
||||
"configPath": "./configs/superfrpc_user_new_frpc_name.toml",
|
||||
"configPath": "./configs/superfrpc_1.toml",
|
||||
"bootAtStart": true,
|
||||
"runUser": "www-data"
|
||||
}
|
||||
@@ -727,7 +727,7 @@ Modify system-level settings such as instance name, boot-at-start configuration,
|
||||
"data": {
|
||||
"instanceName": "new_frpc_name",
|
||||
"instanceID": 1,
|
||||
"configPath": "./configs/superfrpc_user_new_frpc_name.toml",
|
||||
"configPath": "./configs/superfrpc_1.toml",
|
||||
"bootAtStart": true,
|
||||
"runUser": "www-data",
|
||||
"bootServiceError": "Failed to create boot service: unsupported init system"
|
||||
@@ -1048,7 +1048,7 @@ X-Timestamp: 1704067200000
|
||||
"message": "Proxy created successfully",
|
||||
"data": {
|
||||
"instanceID": 1,
|
||||
"configPath": "./configs/superfrpc_user_my_frpc.toml",
|
||||
"configPath": "./configs/superfrpc_1.toml",
|
||||
"proxyName": "ssh_proxy"
|
||||
}
|
||||
}
|
||||
@@ -1134,7 +1134,7 @@ X-Timestamp: 1704067200000
|
||||
"message": "Proxy modified successfully",
|
||||
"data": {
|
||||
"instanceID": 1,
|
||||
"configPath": "./configs/superfrpc_user_my_frpc.toml",
|
||||
"configPath": "./configs/superfrpc_1.toml",
|
||||
"proxyName": "ssh_proxy123"
|
||||
}
|
||||
}
|
||||
@@ -1209,7 +1209,7 @@ X-Timestamp: 1704067200000
|
||||
"message": "Proxy deleted successfully",
|
||||
"data": {
|
||||
"instanceID": 1,
|
||||
"configPath": "./configs/superfrpc_user_my_frpc.toml",
|
||||
"configPath": "./configs/superfrpc_1.toml",
|
||||
"proxyName": "ssh_proxy"
|
||||
}
|
||||
}
|
||||
@@ -1392,7 +1392,7 @@ instanceID=1
|
||||
"message": "Instance info retrieved successfully",
|
||||
"data": {
|
||||
"name": "my_frpc",
|
||||
"serviceName": "superfrpc_admin_my_frpc",
|
||||
"serviceName": "superfrpc_1",
|
||||
"createdAt": "2024-01-01T00:00:00Z",
|
||||
"createdBy": "admin",
|
||||
"isRunning": true,
|
||||
@@ -1401,7 +1401,7 @@ instanceID=1
|
||||
"auth_method": "token",
|
||||
"bootAtStart": true,
|
||||
"runUser": "root",
|
||||
"configPath": "./configs/superfrpc_admin_my_frpc.toml"
|
||||
"configPath": "./configs/superfrpc_1.toml"
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -1413,14 +1413,14 @@ instanceID=1
|
||||
"message": "Instance info retrieved successfully",
|
||||
"data": {
|
||||
"name": "my_frpc",
|
||||
"serviceName": "superfrpc_admin_my_frpc",
|
||||
"serviceName": "superfrpc_1",
|
||||
"createdAt": "2024-01-01T00:00:00Z",
|
||||
"createdBy": "admin",
|
||||
"isRunning": true,
|
||||
"auth_method": "token",
|
||||
"bootAtStart": true,
|
||||
"runUser": "root",
|
||||
"configPath": "./configs/superfrpc_admin_my_frpc.toml"
|
||||
"configPath": "./configs/superfrpc_1.toml"
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -1781,10 +1781,10 @@ Tokens are valid for 1 hour. After expiration, users need to re-login to get a n
|
||||
|
||||
Instance configuration files are saved in the specified `instancePath` with the naming convention:
|
||||
```
|
||||
superfrpc_<username>_<instanceName>.toml
|
||||
superfrpc_<instanceID>.toml
|
||||
```
|
||||
|
||||
Example: `superfrpc_admin_my_frpc.toml`
|
||||
Example: `superfrpc_1.toml`
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user