Alessandro Ros
c7dbb951f3
update golangci-lint ( #3149 )
1 year ago
Alessandro Ros
dd3b268346
do not switch to legacy authentication system when readUser, readPass, publishUser, publishPass are present but are empty ( #3113 )
1 year ago
Alessandro Ros
9c6ba7e2c7
New authentication system ( #1341 ) ( #1992 ) ( #2205 ) ( #3081 )
...
This is a new authentication system that covers all the features exposed by the server, including playback, API, metrics and PPROF, improves internal authentication by adding permissions, improves HTTP-based authentication by adding the ability to exclude certain actions from being authenticated, adds an additional method (JWT-based authentication).
1 year ago
Alessandro Ros
b6db3121b5
rtsp: add random value to timestamp of tracks from other protocols ( #3071 )
1 year ago
Alessandro Ros
c7bdcea741
move RTSP tests into internal/servers/rtsp ( #3049 )
1 year ago
Alessandro Ros
9e5de737f0
move SRT tests into internal/servers/srt ( #3037 )
1 year ago
Alessandro Ros
0f733bab26
add rpiCameraAWBGains ( #2858 ) ( #2954 )
1 year ago
Alessandro Ros
57c2d5aecb
add playback server ( #2452 ) ( #2906 )
...
* add playback server
* add playback switch
* update readme
1 year ago
Alessandro Ros
7b9617f2e7
api: return 404 when an entity is not found ( #2582 ) ( #2920 )
1 year ago
Sijmen
397c58a882
Add Argon2 credential hash support ( #2888 )
...
* Add argon2 credential hash support
* update README, tests and documentation
---------
Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
1 year ago
Alessandro Ros
7437ee7a09
update golangci-lint ( #2868 )
1 year ago
Alessandro Ros
d261bfe773
support static sources in paths with regular expressions ( #824 ) ( #2799 )
...
This allows to proxy requests to other servers by using regular
expressions.
1 year ago
Eng Zer Jun
f335fc67f9
test: use `t.Setenv` to set env vars in tests ( #2722 )
...
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.
Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2 years ago
Alessandro Ros
c3d9be322d
allow using 'fallback' with static sources ( #2606 ) ( #2706 )
2 years ago
Alessandro Ros
3277765851
apidocs: add missing recording settings to PathConf ( #2705 )
2 years ago
Alessandro Ros
7a1e155531
update dependencies ( #2687 )
2 years ago
Alessandro Ros
687d8685ef
webrtc: improve connectivity mechanism ( #2686 )
2 years ago
Alessandro Ros
813611057d
add runOnUnDemand hook ( #2645 )
2 years ago
Alessandro Ros
1d1d64cb89
rename sourceProtocol into rtspTransport, sourceAnyPortEnable into rtspAnyPort ( #2644 )
2 years ago
Alessandro Ros
4b4d57f18e
api: add path name to config/paths/list and config/paths/get ( #2535 ) ( #2596 )
2 years ago
Alessandro Ros
bbb989ee87
api: return full configuration in config/paths/list and config/paths/get ( #2535 ) ( #2595 )
2 years ago
Alessandro Ros
c42fa76afd
rpi: switch default autofocus mode to 'continuous' ( #2591 )
2 years ago
Alessandro Ros
6d27d690dc
update docs ( #2590 )
2 years ago
Alessandro Ros
4dc6e338dd
fix crash when setting deprecated settings with environment ( #2529 ) ( #2550 )
2 years ago
Alessandro Ros
95ab9375c7
support recording to MPEG-TS ( #2505 )
2 years ago
Alessandro Ros
4ec12a6c8b
add runOnRecordSegmentCreate hook ( #2451 ) ( #2503 )
2 years ago
Alessandro Ros
6c727b4472
rename 'all' path configuration into 'all_others' ( #2443 )
2 years ago
Alessandro Ros
8a633d2b79
allow setting different recording parameters for each path ( #2410 ) ( #2457 )
2 years ago
Alessandro Ros
9a01ab7fd5
allow changing default path settings; bump API in order to allow so ( #2455 )
2 years ago
PieterFabry
3c4039b81f
Supports webrtc interface filtering on server ( #2460 )
...
* Supports webrtc interface filtering on server
* test(#2707 ): Fixed testing for build
* lint(#2707 ): Fixed lint issues for build
* normalize setting name
* move instructions in the configuration file
---------
Co-authored-by: Pieter Fabry <pieterfabry@observe.tech>
Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2 years ago
Alessandro Ros
eb975027b2
add runOnRecordSegmentComplete and rclone integration ( #2404 ) ( #2428 )
2 years ago
Alessandro Ros
2d929e1132
move 'srtReadPassphrase' into the right section ( #2435 )
2 years ago
Alessandro Ros
442a48363c
allow to start/stop recording without disconnecting clients ( #2395 ) ( #2434 )
2 years ago
Alessandro Ros
61b77a3ff9
api: return 400 in case of non-existent config fields ( #2425 )
2 years ago
rmcnew
75f518a827
Support SRT encryption passphrases on configured paths ( #2385 )
...
* Support SRT encryption passphrases on configured paths
* Fix namespace; make passphrase use more clear
* Updates from Alessandro's feedback and lint output
* Fix lint findings
* Update lint.yml
* Update lint.yml
* Fix lint findings
* Add SRT passphrase tests for conf/path
* Reformat test to pass lint
* More changes to pass lint
* More changes to pass lint
* Use safeConf to prevent race conditions
* update API docs
* split configuration checks from connection checks
* add tests
* rename publishSRTPassphrase into srtPublishPassphrase, readSRTPassphrase into srtReadPassphrase
* remove redundant alias
---------
Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2 years ago
Alessandro Ros
cadc6b3ea7
rename 'external commands' into 'hooks' ( #2400 )
2 years ago
Alessandro Ros
3a7d86ec03
normalize configuration ( #2399 )
2 years ago
Alessandro Ros
8fd7019f2a
rpi camera: add additional checks on configuration ( #2368 )
2 years ago
Alessandro Ros
b86dc979ca
fix default value of some settings ( #2367 )
...
rtmpServerKey, rtmpServerCert, recordPath, rpiCameraExposure,
rpiCameraAWB, rpiCameraDenoise, rpiCameraMetering, rpiCameraAfMode,
rpiCameraAfRange, rpiCameraAfSpeed were not set correctly when missing
in the configuration file.
2 years ago
Alessandro Ros
ac10102329
automatically set 'record: yes' when not specified ( #2366 )
2 years ago
Alessandro Ros
f2f417e451
search for configuration file in various paths, print paths if configuration is not found ( #1993 ) ( #2276 ) ( #2357 )
2 years ago
Alessandro Ros
ed77560811
add runOnDisconnect, runOnNotReady, runOnUnread ( #1464 ) ( #2355 )
2 years ago
Alessandro Ros
73ddb21e63
implement native recording ( #1399 ) ( #2255 )
...
* implement native recording (#1399 )
* support saving VP9 tracks
* support saving MPEG-1 audio tracks
* switch segment when codec parameters change
* allow to disable recording on a path basis
* allow disabling recording cleaner
* support recording MPEG-1/2/4 video tracks
* add microseconds to file names
* add tests
2 years ago
Alessandro Ros
5fb7f4e846
force all readers to use an asynchronous writer ( #2265 )
...
needed by #2255
2 years ago
Alessandro Ros
cf86dbb303
switch to gortsplib/v4 ( #2244 )
2 years ago
Alessandro Ros
bf8e69ea89
rename readBufferCount into writeQueueSize ( #2248 )
2 years ago
Alessandro Ros
659f19f8bb
enable errcheck ( #2201 )
2 years ago
Alessandro Ros
61d300396d
remove 'disable' from names of configuration parameters ( #2101 )
2 years ago
Alessandro Ros
d6058ae469
rename disablePublisherOverride into overridePublisher ( #2164 )
2 years ago
Alessandro Ros
d00b22b5e5
support setting a maximum number of readers per path ( #1286 ) ( #2154 )
2 years ago