Sergey Krashevich
8d382afa0f
Add log file handling and viewing capabilities
...
This commit introduces the ability to handle log files through the API and
provides a new log viewing page. The API now supports GET and DELETE methods
for log file operations, allowing retrieval and deletion of log contents.
A new log.html page has been added for viewing logs in the browser, with
automatic refresh every 5 seconds and styling based on log levels.
The app.go file has been updated to include a GetLogFilepath function that
retrieves or generates the log file path. The NewLogger function now accepts
a file parameter to enable file logging. The main.js file has been updated
to include a link to the new log.html page.
This enhancement improves the observability and management of the application
by providing real-time access to logs and the ability to clear them directly
from the web interface.
2023-11-26 23:21:57 +03:00
Sergey Krashevich
95de3a1f3e
Update openapi.yaml
2023-10-19 16:40:14 +03:00
Sergey Krashevich and GitHub
f27f7d28bb
Update editor.html
2023-09-30 12:38:31 +03:00
Sergey Krashevich and GitHub
81fb8fc238
Update README.md
2023-09-27 14:11:03 +03:00
Sergey Krashevich
aa5b23fa80
fix openapi specs
2023-09-25 07:41:55 +03:00
Sergey Krashevich
9368a6b85e
Add conditional check before adding a new pair in the server's AddPair function
2023-09-11 10:34:31 +03:00
Sergey Krashevich
541a7b28a7
Refactor LocalIP method to correctly handle non-TCP connections
2023-09-05 10:27:12 +03:00
Sergey Krashevich
9f14b30aae
Refactor CSS in editor.html for better readability and remove duplicate body rule
2023-08-23 17:24:17 +03:00
Sergey Krashevich
065a6f4f46
Update Debian and Go versions to bookworm-slim and 1.21-bookworm respectively in hardware.Dockerfile
2023-08-23 17:06:21 +03:00
Sergey Krashevich
6f5ba2ade6
Update ace library version to 1.24.1 and fix code syntax in editor.html
2023-08-23 12:59:05 +03:00
Sergey Krashevich
0822326900
Update Go version to 1.21 in build and test workflows and Dockerfiles
2023-08-23 10:09:53 +03:00
Sergey Krashevich
490a48cd50
Refactored code to resize JPEG snapshot if "h" parameter exists in the URL query
2023-07-11 10:35:53 +03:00
Sergey Krashevich
c94d1e237d
Merge remote-tracking branch 'remotes/upstream/master' into patch-listen-tls
2023-05-21 23:29:08 +03:00
Sergey Krashevich and GitHub
981974eac9
Update hardware.Dockerfile
2023-05-04 22:45:39 +03:00
Sergey Krashevich
5b29306d4f
Refactor video toolbox probe commands to use SVGA resolution in hardware_darwin.go
2023-05-04 22:22:00 +03:00
Sergey Krashevich
af717b2172
add tls support
2023-04-14 18:28:03 +03:00
Sergey Krashevich
722b2827a1
Update Go version to 1.20 in test.yml and Dockerfiles
2023-04-03 20:30:25 +03:00
Sergey Krashevich
59347a409e
Add cache for faster Docker builds from the GitHub Actions environment in ".github/workflows/docker.yml".
2023-04-02 07:05:09 +03:00
Sergey Krashevich
49e861d1b0
Update Docker build-push-action to version 4 in workflows/docker.yml and workflows/test.yml and deploy-pages to version 2 in workflows/gh-pages.yml
2023-04-02 04:02:28 +03:00
Sergey Krashevich
b1701e856a
Update hardware.Dockerfile
2023-04-02 02:28:44 +03:00
Sergey Krashevich
a6260d0f56
Refactor Receiver and Sender methods to use RLock instead of Lock
2023-03-28 16:44:52 +03:00
Sergey Krashevich
693d41be87
Add buffer size of 8M to RTSP output in ffmpeg and handle EOF error when accepting RTSP connection in rtsp.go
2023-03-28 15:47:25 +03:00
Sergey Krashevich
222dc6a5c2
Refactor code to include buffer channels to prevent blocking in handler functions and add RWMutex to Receiver and Sender structs for concurrency-safe data access
2023-03-28 05:56:35 +03:00
Sergey Krashevich
91a7b5be27
Update editor.html
2023-02-27 05:37:17 +03:00
Sergey Krashevich
eca311717a
Update index.html
2023-02-27 02:02:32 +03:00
Sergey Krashevich
d3b2b8fdae
add docker testing
2023-02-21 18:24:41 +03:00
Sergey Krashevich
3b9a0059df
Create test.yml
2023-02-21 17:54:55 +03:00
Sergey Krashevich
a388002b12
Merge branch 'master' into macos-lipo
2023-02-04 20:40:46 +03:00
Sergey Krashevich
b7391f58a5
Update release.yml
2023-01-28 03:21:03 +03:00
Sergey Krashevich and GitHub
a36359f3dd
Update api.go
2023-01-20 18:38:46 +03:00
Sergey Krashevich
b7016e798f
Update config.go
2023-01-14 21:27:23 +03:00
Sergey Krashevich
b51aabd3d9
Update Dockerfile
2023-01-06 11:52:09 +03:00