Fatih Degirmenci | c2a4601 | 2019-09-30 12:07:45 +0200 | [diff] [blame] | 1 | import os |
| 2 | from dotenv import load_dotenv |
| 3 | |
| 4 | basedir = os.path.abspath(os.path.dirname(__file__)) |
| 5 | load_dotenv(os.path.join(basedir, '.env')) |
| 6 | |
| 7 | class Config(object): |
| 8 | SECRET_KEY = os.environ.get('SECRET_KEY') |
| 9 | SECURITY_PASSWORD_SALT = os.environ.get('SECURITY_PASSWORD_SALT') |
| 10 | SQLALCHEMY_DATABASE_URI = os.environ.get('SQLALCHEMY_DATABASE_URI') |
| 11 | SQLALCHEMY_TRACK_MODIFICATIONS = False |
| 12 | BOOKINGS_PER_PAGE = 10 |
| 13 | NOLABS_ADMINS = ['fdegir@gmail.com', 'fatih.degirmenci@est.tech'] |
| 14 | LOGS_DIR = os.environ.get('LOGS_DIR') |
| 15 | CONTENT_DIR = basedir + '/content' |
| 16 | JENKINS_URL=os.environ.get('JENKINS_URL') |
| 17 | JENKINS_SLAVE_LABEL=os.environ.get('JENKINS_SLAVE_LABEL') |
| 18 | JENKINS_NOLABS_USERNAME=os.environ.get('JENKINS_NOLABS_USERNAME') |
| 19 | JENKINS_NOLABS_TOKEN=os.environ.get('JENKINS_NOLABS_TOKEN') |
| 20 | JENKINS_HANDLE_BOOKING_JOB=os.environ.get('JENKINS_HANDLE_BOOKING_JOB') |
| 21 | JENKINS_DELETE_BOOKING_JOB=os.environ.get('JENKINS_DELETE_BOOKING_JOB') |