* Add cloud connection statuses on user page * Add fixes for oncall hobby docker-compose installation * Fix for links and for cloud user status at User settings * Delete cloud api token on cloud disconnect * Merge branch 'dev' into cloud_connection_statuses_on_user_page * Fix cloud statuses for users * Fix usagestats service * Fix phone verification message in users table * added request after syncing user * Add endpoint to create CloudHeartbeat and polish code * Fix imports * Check token and heartbeat setting in setup_hertbeat_integration * Add macthed_users_count in cloud users * Sync users on token change * Fix query param * Fix tests * Heartbit button logic, tab width fix, coount users fix * Solve problem of existent cloud heartbeat integration * Solve problem of existent cloud heartbeat integration 2 * Solve problem of existent cloud heartbeat integration 3 * fix build * build fix, styles for env variables description Co-authored-by: Ildar Iskhakov <ildar.iskhakov@grafana.com> Co-authored-by: Yulia Shanyrova <yulia.shanyrova@grafana.com>
38 lines
1 KiB
Python
38 lines
1 KiB
Python
# flake8: noqa: F405
|
|
|
|
from random import randrange
|
|
|
|
# Workaround to use pymysql instead of mysqlclient
|
|
import pymysql
|
|
|
|
from .prod_without_db import * # noqa
|
|
|
|
pymysql.install_as_MySQLdb()
|
|
|
|
DATABASES = {
|
|
"default": {
|
|
"ENGINE": "django.db.backends.mysql",
|
|
"NAME": os.environ.get("MYSQL_DB_NAME"),
|
|
"USER": os.environ.get("MYSQL_USER"),
|
|
"PASSWORD": os.environ["MYSQL_PASSWORD"],
|
|
"HOST": os.environ.get("MYSQL_HOST"),
|
|
"PORT": os.environ.get("MYSQL_PORT"),
|
|
"OPTIONS": {
|
|
"charset": "utf8mb4",
|
|
"connect_timeout": 1,
|
|
},
|
|
},
|
|
}
|
|
|
|
RABBITMQ_USERNAME = os.environ.get("RABBITMQ_USERNAME")
|
|
RABBITMQ_PASSWORD = os.environ.get("RABBITMQ_PASSWORD")
|
|
RABBITMQ_HOST = os.environ.get("RABBITMQ_HOST")
|
|
RABBITMQ_PORT = os.environ.get("RABBITMQ_PORT")
|
|
|
|
CELERY_BROKER_URL = f"amqp://{RABBITMQ_USERNAME}:{RABBITMQ_PASSWORD}@{RABBITMQ_HOST}:{RABBITMQ_PORT}"
|
|
|
|
MIRAGE_SECRET_KEY = SECRET_KEY
|
|
MIRAGE_CIPHER_IV = "1234567890abcdef" # use default
|
|
|
|
APPEND_SLASH = False
|
|
SECURE_SSL_REDIRECT = False
|