-
Notifications
You must be signed in to change notification settings - Fork 980
Description
Hello, first of all, thank you for maintaining this great project! 🥳
I was looking for a way to dynamically reload the go2rtc configuration, but it seems this is not currently possible. As a workaround, I want to restart go2rtc whenever my configuration changes.
I came across this feature in issue #1814 but it is not clearly stated that it requires a POST request. I figured it out by inspecting my browser's network traffic and noticing that go2rtc's web UI sends this exact request when you save the configuration.
The feature
When go2rtc receives the following HTTP request:
POST /api/restart
It restarts the service.
Example usage:
curl -X POST http://localhost:1984/api/restart
Request
I would love to see this endpoint documented somewhere in the official documentation, as I discovered it entirely by chance. It could be a valuable reference for users who want to automate restarts because they have dynamic configuration.