-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
executable file
·38 lines (38 loc) · 1.39 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import datetime
# Turns on debugging features in Flask
DEBUG = True
#
# For use in web_app emails
MAIL_FROM_EMAIL = "[email protected] "
#
# This is a secret key that is used by Flask to sign cookies.
# Its also used by extensions like Flask-Bcrypt. You should
# define this in your instance folder to keep it out of version
# control.
SECRET_KEY = 'change_this_please' # Change for production
#
# Configuration for the Flask-Bcrypt extension
BCRYPT_LEVEL = 12
# ----------------------------------------------------------------
# SLACK CONFIG
# ----------------------------------------------------------------
SLACK_WEBHOOK = " https://hooks.slack.com/services/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 "
#
# ----------------------------------------------------------------
# JWT CONFIGURATIONS
# ----------------------------------------------------------------
JWT_AUTH_URL_RULE = '/api/v1/auth'
JWT_EXPIRATION_DELTA = datetime.timedelta(3200) # Set the token validity
#
# ----------------------------------------------------------------
# MONGO DATABASE CONFIGURATION
# ----------------------------------------------------------------
# MongoDB configuration parameters
MONGODB_DB = 'battleship'
MONGODB_HOST = 'localhost'
#
# ----------------------------------------------------------------
# REDIS CONFIGURATIONS
# ----------------------------------------------------------------
#
REDIS_URL = "redis://localhost:6379/0"