Skip to content

Latest commit

 

History

History
executable file
·
86 lines (58 loc) · 1.78 KB

File metadata and controls

executable file
·
86 lines (58 loc) · 1.78 KB

Configuration

Introduction

This documents holds the application’s configuration parameters.

System Config

# Application URL
APP_URL = "http://localhost:5000"

# Configure key
KEY = "defaultkey"

# Lab Data Service URL
LDS_URL = "http://ld.base4.vlabs.ac.in"

# Analytics database (i.e elasticsearch) URL
ANALYTICS_DB_URL = "http://192.168.33.3"

# Analytics database (i.e elasticsearch) indexes & doc_types to store the
# analytics data

## Index to store vlabs analytics
VLABS_USAGE = "vlabs"

## Types to store openedx & nonopenedx usages
OPENEDX_USAGE = "openedx_usage"
NONOPENEDX_USAGE = "nonopenedx_usage"

# PATH to analytics of nonopenedx labs file which is copied from
# stats.vlabs.ac.in server

NONOPENEDX_USAGE_INFO_FILE_PATH = "/home/sripathi/output.txt"

###Credentials to analytics-db
USER="sripathi"
PASSWORD="sudswathi"

Flask Application Configuration

Configuration for the flask application.

# List of allowed origins for CORS
ALLOWED_ORIGINS = "['*']"

# List of allowed IPs
WHITELIST_IPS = ["127.0.0.1"]

# Configure your log paths
LOG_FILE_DIRECTORY = 'logs'
LOG_FILE = 'vlabs-analytics-service.log'

# Log level for the application
#10=DEBUG, 20=INFO, 30=WARNING, 40=ERROR, 50=CRITICAL",
LOG_LEVEL = 10

Tangling

flask_app_config

<<flask_app_config>>

system_config

<<system_config>>