mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2026-04-22 23:57:20 +08:00
Expose process PID in API and UI
Include the process PID in the API info payload and surface it in the frontend. apiHandler now adds app.Info["pid"] = os.Getpid(); openapi.yaml documents the new pid property as an integer with an example; www/index.html is updated to show pid alongside version and config. This aids debugging and identifying the running process.
This commit is contained in:
@@ -123,6 +123,7 @@ paths:
|
||||
properties:
|
||||
config_path: { type: string, example: "/config/go2rtc.yaml" }
|
||||
host: { type: string, example: "192.168.1.123:1984" }
|
||||
pid: { type: integer, example: 12345 }
|
||||
rtsp:
|
||||
type: object
|
||||
properties:
|
||||
|
||||
Reference in New Issue
Block a user