Skip to content

Instantly share code, notes, and snippets.

@kikyous
Created September 25, 2018 01:57
Show Gist options
  • Save kikyous/85d5e5e960dda62a5e313342d3c8b4f6 to your computer and use it in GitHub Desktop.
Save kikyous/85d5e5e960dda62a5e313342d3c8b4f6 to your computer and use it in GitHub Desktop.
exports.lmsServer = 'http://{{ lms_server }}';
exports.redis = {
host: '{{redis_host}}',
port: {{redis_port}},
database: {{ redis_db|default(0) }},
sentinels: '{{ redis_sentinels }}',
name: '{{ redis_sentinel_name }}',
redis_sentinel_enabled: {{ redis_sentinel_enabled | default(0) }},
{% if redis_password is defined and redis_password != '' %}
password: '{{ redis_password }}'
{% else %}
password: null
{% endif %}
};
exports.videoQueue = 'lms-video'
exports.audioQueue = 'lms-audio'
exports.documentQueue = 'lms-document'
exports.imageQueue = 'lms-image'
exports.dirs = {
fileStorage: '{{location_file_storage}}',
outbound: '{{location_processed}}'
};
exports.storage = {
{% if storage_type is defined and storage_type == "HICLOUD" %}
fileStorage: '{{ hicloud_upload_prefix }}',
outbound: '{{ hicloude_outbound_prefix }}',
s3cfgPath: '{{ s3_cfg_path|default('/opt/apps/lms-media/s3cfg') }}',
{% endif %}
type: '{{ storage_type|default('') }}'
};
exports.ffmpegThreads = {{ffmpeg_threads}};
exports.ntf = {
server: '{{lms_ntf_server}}',
apiKey: '{{lms_ntf_api_key}}'
};
exports.videoOptions = {
'QVGA': {
maxWidth: 320,
maxHeight: 240
},
'VGA': {
maxWidth: 640,
maxHeight: 480
},
'HD': {
maxWidth: 1280,
maxHeight: 720
}
};
exports.noResolution = {{ no_resolution }};
exports.unoconvTimeout = 60 * 5 * 1000;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment