Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configuration file #58

Open
NileshSapkale301 opened this issue Jul 29, 2024 · 2 comments
Open

configuration file #58

NileshSapkale301 opened this issue Jul 29, 2024 · 2 comments

Comments

@NileshSapkale301
Copy link

i got a success in that at every point.
but issue is every camera need a different subdomain name.

this below is my configuration file info.
[common]
server_addr = xxxxxxxx
server_port = 7000
token = xxxx

[DEPT-00002-TORQUE]
type = http
local_port = 80
local_ip = 127.0.0.1
subdomain = DEPT-00002-TORQUE
host_header_rewrite = xxxxxx

what wrong in that file configuration.
because every new camera i need to do change
this point i need to change.
[DEPT-00002-TORQUE]
subdomain = DEPT-00002-TORQUE

for exmaple,
for new camera configuration we need to do.
[common]
server_addr = xxxxxxx
server_port = 7000
token = xxxxxx

[DEPT-00003-TORQUE] //here i need to change
type = http
local_port = 80
local_ip = 127.0.0.1
subdomain = DEPT-00003-TORQUE //here i need to change
host_header_rewrite = xxxxxx

but i not need to change this configuration file every time.

what is solution?

@liudf0716
Copy link
Owner

If you want to use subdomains, you must first configure frps to support it. Please refer to the FRP project documentation for instructions on how to set up frps to support subdomains. By the way, xfrpc does not support host header rewriting yet.

@NileshSapkale301
Copy link
Author

[root@anyka /mny/mtd/ipc/ambicam]$ /mny/mtd/ipc/ambicam/P2Pambicam -c /mny/mtd/ipc/ambicam/P2Pambicam_min.ini -f -d 7
[7][Thu Aug 29 13:25:04 2024]3085 Reading configuration file '/mny/mtd/ipc/ambicam/P2Pambicam_min.ini'
[7][Thu Aug 29 13:25:04 2024]3085 Section[common]: {server_addr:xxx.xxx.xxx.xxx, server_port:7000, auth_token:12345678, interval:30, timeout:90}
[7][Thu Aug 29 13:25:04 2024]3085 Proxy service 0: {name:VSPN-111328-WYCRE, local_port:80, type:http, use_encryption:0, use_compression:0, custom_domains:(null), subdomain:VSPN-111328-WYCRE, locations:(null), host_header_rewrite:torqueverse.dev, http_user:(null), http_pwd:(null)}
[6][Thu Aug 29 13:25:04 2024]3085 connect server [xxx.xxx.xxx.xxx:7000]...
[7][Thu Aug 29 13:25:04 2024]3085 xfrp server connected
[7][Thu Aug 29 13:25:04 2024]3085 send plain msg ----> [o: { "version": "0.58.0", "hostname": "", "os": "Linux", "arch": "armv5tejl", "privilege_key": "2299ae901839977eea726afff4da99d7", "timestamp": 1724937904, "run_id": "2289846A96AB", "pool_count": 1 }]
[7][Thu Aug 29 13:25:04 2024]3085 start keep_control_alive
[7][Thu Aug 29 13:25:04 2024]3085 xfrp login response: run_id: [2289846A96AB], version: [0.54.0]
[3][Thu Aug 29 13:25:04 2024]3085 login success! login_len 44 len 53 ilen 0
[7][Thu Aug 29 13:25:04 2024]3085 recv eas1238 iv data
[6][Thu Aug 29 13:25:04 2024]3085 Start xfrp proxy services ...
[7][Thu Aug 29 13:25:04 2024]3085 control proxy client: [Type 112 : proxy_name VSPN-111328-WYCRE : msg_len 280]
[7][Thu Aug 29 13:25:04 2024]3085 new client through tcp mux: 5
[7][Thu Aug 29 13:25:04 2024]3085 send plain msg ----> [w: { "run_id": "2289846A96AB" }]
[6][Thu Aug 29 13:25:34 2024]3085 ping frps
[6][Thu Aug 29 13:26:04 2024]3085 ping frps
[6][Thu Aug 29 13:26:34 2024]3085 ping frps
[6][Thu Aug 29 13:27:04 2024]3085 ping frps
[6][Thu Aug 29 13:27:34 2024]3085 ping frps
[6][Thu Aug 29 13:28:04 2024]3085 ping frps
[6][Thu Aug 29 13:28:34 2024]3085 ping frps
[6][Thu Aug 29 13:28:34 2024]3085 interval [120] greater than heartbeat_timeout [90]
[7][Thu Aug 29 13:28:34 2024]3085 free client 5
[6][Thu Aug 29 13:28:34 2024]3085 connect server [xxx.xxx.xxx.xxx:7000]...
[7][Thu Aug 29 13:28:34 2024]3085 xfrp server connected
[7][Thu Aug 29 13:28:34 2024]3085 send plain msg ----> [o: { "version": "0.58.0", "hostname": "", "os": "Linux", "arch": "armv5tejl", "privilege_key": "8d25e6f33feeed79e7d4ae5c13234535", "timestamp": 1724938114, "run_id": "2289846A96AB", "pool_count": 1 }]
[7][Thu Aug 29 13:28:34 2024]3085 start keep_control_alive
[7][Thu Aug 29 13:28:34 2024]3085 xfrp login response: run_id: [2289846A96AB], version: [0.54.0]
[3][Thu Aug 29 13:28:34 2024]3085 login success! login_len 44 len 53 ilen 0
[7][Thu Aug 29 13:28:34 2024]3085 recv eas1238 iv data
[6][Thu Aug 29 13:28:34 2024]3085 Start xfrp proxy services ...
[7][Thu Aug 29 13:28:34 2024]3085 control proxy client: [Type 112 : proxy_name VSPN-111328-WYCRE : msg_len 280]
[7][Thu Aug 29 13:28:34 2024]3085 new client through tcp mux: 3
[7][Thu Aug 29 13:28:34 2024]3085 send plain msg ----> [w: { "run_id": "2289846A96AB" }]

this log i am provide you.
can you tell me why this connect this connect.
how i can solve this issue.
[6][Thu Aug 29 13:32:04 2024]3085 interval [120] greater than heartbeat_timeout [90]
[7][Thu Aug 29 13:32:04 2024]3085 free client 3
[6][Thu Aug 29 13:32:04 2024]3085 connect server [143.244.139.222:7000]...
[7][Thu Aug 29 13:32:04 2024]3085 xfrp server connected
[7][Thu Aug 29 13:32:04 2024]3085 send plain msg ----> [o: { "version": "0.58.0", "hostname": "", "os": "Linux", "arch": "armv5tejl", "privilege_key": "9f102ff9aed9e59d0d595b2ce65e5e35", "timestamp": 1724938324, "run_id": "2289846A96AB", "pool_count": 1 }]
[7][Thu Aug 29 13:32:04 2024]3085 start keep_control_alive
[7][Thu Aug 29 13:32:04 2024]3085 xfrp login response: run_id: [2289846A96AB], version: [0.54.0]
[3][Thu Aug 29 13:32:04 2024]3085 login success! login_len 44 len 53 ilen 0
[7][Thu Aug 29 13:32:04 2024]3085 recv eas1238 iv data
[6][Thu Aug 29 13:32:04 2024]3085 Start xfrp proxy services ...
[7][Thu Aug 29 13:32:04 2024]3085 control proxy client: [Type 112 : proxy_name VSPL-111328-WYCRE : msg_len 280]
[7][Thu Aug 29 13:32:04 2024]3085 new client through tcp mux: 3
[7][Thu Aug 29 13:32:04 2024]3085 send plain msg ----> [w: { "run_id": "2289846A96AB" }]
[6][Thu Aug 29 13:32:34 2024]3085 ping frps
[6][Thu Aug 29 13:33:04 2024]3085 ping frps
[6][Thu Aug 29 13:33:34 2024]3085 ping frps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants