listen to records
After the end of a show, the audio recordings are uploaded to a directory "listen_dir" under a secret name, beginning with the transmission date "yyyy-mm-dd hh_mm". The directory is available as URL "listen_url", but must not be listable. In order to gain access to the recording for 7 days after the show, a check is done to determine whether the file is available. A random key for the show is stored in the database if a file matching the date is found in listen_dir. With this key as a name, a symbolic link to the original audio file is created. The random name can be used in public documents. If the show data is read again, the key will be retrieved from the database. File access can be restricted by the Apache2 handler ListenerAccess.pm. With it, access to the public symlink is possible for one week.
This commit is contained in:
@@ -76,6 +76,10 @@ domain ${DOMAIN}
|
||||
local_archive_dir /home/calcms/archive/
|
||||
local_archive_url /archive/
|
||||
|
||||
# listen
|
||||
listen_dir /home/calcms/${DOMAIN}/
|
||||
listen_url https://${DOMAIN}/listen/
|
||||
|
||||
local_audio_recordings_dir ${BASE_DIR}/recordings/
|
||||
local_audio_recordings_url /agenda_files/recordings/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user