Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Scorm Player Rest Api for play scorm modules

Notifications You must be signed in to change notification settings

fluxfw/flux-scorm-player-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flux-scorm-player-rest-api

Scorm Player Rest Api for play scorm modules

Permission issues

If you have permission issues in the scorm directory, you need to give the www-data user write permissions with the follow command like

docker exec -u root:root %container_name% chown www-data:www-data -R /scorm

Environment variables

Variable Description Default value
FLUX_SCORM_PLAYER_REST_API_FILESYSTEM_FOLDER Scorm directory /scorm
FLUX_SCORM_PLAYER_REST_API_DATABASE_PASSWORD MongoDB password
Use FLUX_SCORM_PLAYER_REST_API_DATABASE_PASSWORD_FILE for docker secrets
-
FLUX_SCORM_PLAYER_REST_API_DATABASE_HOST MongoDB host scorm-player-database
FLUX_SCORM_PLAYER_REST_API_DATABASE_PORT MongoDB port 27017
FLUX_SCORM_PLAYER_REST_API_DATABASE_USER MongoDB user name scorm-player
FLUX_SCORM_PLAYER_REST_API_DATABASE_DATABASE MongoDB database name scorm-player
FLUX_SCORM_PLAYER_REST_API_DATA_STORAGE_TYPE Data storage type
database or external_api
database
FLUX_SCORM_PLAYER_REST_API_EXTERNAL_API_GET_DATA_URL External api data storage get url
You can use {scorm_id} and {user_id} placeholders
-
FLUX_SCORM_PLAYER_REST_API_EXTERNAL_API_STORE_DATA_URL External api data storage store url
You can use {scorm_id} and {user_id} placeholders
-
FLUX_SCORM_PLAYER_REST_API_EXTERNAL_API_DELETE_DATA_URL External api data storage delete url
You can use {scorm_id} placeholder
-
FLUX_SCORM_PLAYER_REST_API_SERVER_HTTPS_CERT Path to HTTPS certificate file
Set this will enable listen on HTTPS
Should be on a volume
-
FLUX_SCORM_PLAYER_REST_API_SERVER_HTTPS_KEY Path to HTTPS key file
Should be on a volume
-
FLUX_SCORM_PLAYER_REST_API_SERVER_LISTEN Listen IP 0.0.0.0
FLUX_SCORM_PLAYER_REST_API_SERVER_PORT Listen port 9501
FLUX_SCORM_PLAYER_REST_API_SERVER_MAX_UPLOAD_SIZE Maximal file upload size 104857600

Minimal variables required to set are bold

Example

examples