|
1 | 1 | import os |
2 | 2 |
|
| 3 | +DEBUG = os.getenv("APP_DEBUG", False) |
| 4 | + |
3 | 5 | # Url of memcached server |
4 | | -MEMCACHED_URL = os.getenv("MEMCACHED_URL", '127.0.0.1:8000') |
| 6 | +MEMCACHED_URL = os.getenv("MEMCACHED_URL", "127.0.0.1:11211") |
5 | 7 |
|
6 | 8 | # Amazon Web Services configs |
7 | | -AWS_CONFIGS = { |
8 | | - "aws_access_key_id": os.getenv("AWS_ACCESS_KEY_ID"), |
9 | | - "aws_secret_access_key": os.getenv("AWS_SECRET_KEY"), |
10 | | - "region_name": os.getenv("AWS_REGION", 'eu-west-1'), |
11 | | - } |
| 9 | +AWS = { |
| 10 | + "access_key": os.getenv("AWS_ACCESS_KEY"), |
| 11 | + "secret_key": os.getenv("AWS_SECRET_KEY"), |
| 12 | + "region": os.getenv("AWS_REGION", "eu-west-1"), |
| 13 | +} |
12 | 14 |
|
13 | 15 | # Elastic Search configs |
14 | 16 | ES = { |
15 | 17 | "host": os.getenv("ES_HOST", "127.0.0.1"), |
16 | 18 | "port": os.getenv("ES_PORT", "9200"), |
17 | | - "index": "healthtools" |
18 | | - } |
19 | | - |
20 | | - |
21 | | -class Config(object): |
22 | | - # Google Analytics tracking id |
23 | | - GA_TRACKING_ID = os.environ.get('GA_TRACKING_ID') |
24 | | - |
25 | | - # SMS provider credentials |
26 | | - SMS_USER = os.environ.get('SMS_USER') |
27 | | - SMS_PASS = os.environ.get('SMS_PASS') |
28 | | - SMS_SHORTCODE = os.environ.get('SMS_SHORTCODE') |
29 | | - |
30 | | - DOCTORS_SEARCH_URL = "https://6ujyvhcwe6.execute-api.eu-west-1.amazonaws.com/prod" |
31 | | - NURSE_SEARCH_URL = "https://api.healthtools.codeforafrica.org/nurses/search.json" |
32 | | - CO_SEARCH_URL = "https://vfblk3b8eh.execute-api.eu-west-1.amazonaws.com/prod" |
33 | | - NHIF_SEARCH_URL = "https://t875kgqahj.execute-api.eu-west-1.amazonaws.com/prod" |
34 | | - HF_SEARCH_URL = "https://187mzjvmpd.execute-api.eu-west-1.amazonaws.com/prod" |
| 19 | + "index": "healthtools-ke" |
| 20 | +} |
35 | 21 |
|
| 22 | +# Google Analytics tracking id |
| 23 | +GA_TRACKING_ID = os.environ.get('GA_TRACKING_ID') |
36 | 24 |
|
37 | | -# development config |
38 | | -class DevConfig(Config): |
39 | | - DEBUG = True |
40 | | - SERVER_NAME = "127.0.0.1:8000" |
| 25 | +# SMS provider credentials |
| 26 | +SMS_USER = os.environ.get('SMS_USER') |
| 27 | +SMS_PASS = os.environ.get('SMS_PASS') |
| 28 | +SMS_SHORTCODE = os.environ.get('SMS_SHORTCODE') |
0 commit comments