Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
physical
Commits
56f02a98
Commit
56f02a98
authored
Nov 21, 2019
by
zhongshangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix settings_local
parent
27149471
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
98 additions
and
4 deletions
+98
-4
settings_local.py
deploy/prod/settings_local.py
+49
-2
settings_local.py
deploy/stage/settings_local.py
+49
-2
No files found.
deploy/prod/settings_local.py
View file @
56f02a98
...
...
@@ -210,4 +210,51 @@ KAFKA_BROKER_LIST = "172.17.32.49:9092,172.17.32.46:9092,172.17.32.58:9092"
KAFKA_TOPIC_NAME
=
"gm-maidian-data"
KAFKA_GM_LOGGING_TOPIC_NAME
=
"gm-logging-prod"
SLAVE_DB_NAME
=
'slave'
SLAVE1_DB_NAME
=
'slave1'
\ No newline at end of file
SLAVE1_DB_NAME
=
'slave1'
SLAVE2_DB_NAME
=
'slave2'
MASTER_DB_NAME
=
'master'
ES_INDEX_PREFIX
=
"gm-dbmw"
MIDDLEWARE_CLASSES
=
(
'gm_tracer.middleware.TracerMiddleware'
,
'django.contrib.sessions.middleware.SessionMiddleware'
,
'django.middleware.common.CommonMiddleware'
,
'django.middleware.csrf.CsrfViewMiddleware'
,
'django.contrib.auth.middleware.AuthenticationMiddleware'
,
'django.contrib.auth.middleware.SessionAuthenticationMiddleware'
,
'django.contrib.messages.middleware.MessageMiddleware'
,
'django.middleware.clickjacking.XFrameOptionsMiddleware'
,
'helios.DjangoL5dMiddleware'
,
)
# Password validation
# https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators
# Internationalization
# https://docs.djangoproject.com/en/1.10/topics/i18n/
# LANGUAGE_CODE = 'en-us'
#
TIME_ZONE
=
'Asia/Shanghai'
USE_I18N
=
True
USE_L10N
=
True
#
# USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.10/howto/static-files/
STATIC_URL
=
'/static/'
CACHE_SECONDS
=
60
*
60
*
24
*
2
REDIS_HOST
=
'172.17.40.140'
REDIS_PW
=
'gHtmeIqBhVHtH8MG'
REDIS_TOPIC
=
{
'reply_cache'
:
{
'host'
:
REDIS_HOST
,
'port'
:
6379
,
'db'
:
9
,
'password'
:
REDIS_PW
},
'follow_cache'
:
{
'host'
:
REDIS_HOST
,
'port'
:
6379
,
'db'
:
10
,
'password'
:
REDIS_PW
},
'click_cache'
:
{
'host'
:
REDIS_HOST
,
'port'
:
6379
,
'db'
:
11
,
'password'
:
REDIS_PW
},
}
\ No newline at end of file
deploy/stage/settings_local.py
View file @
56f02a98
...
...
@@ -210,4 +210,51 @@ KAFKA_BROKER_LIST = "172.17.32.49:9092,172.17.32.46:9092,172.17.32.58:9092"
KAFKA_TOPIC_NAME
=
"gm-maidian-data"
KAFKA_GM_LOGGING_TOPIC_NAME
=
"gm-logging-prod"
SLAVE_DB_NAME
=
'slave'
SLAVE1_DB_NAME
=
'slave1'
\ No newline at end of file
SLAVE1_DB_NAME
=
'slave1'
SLAVE2_DB_NAME
=
'slave2'
MASTER_DB_NAME
=
'master'
ES_INDEX_PREFIX
=
"gm-dbmw"
MIDDLEWARE_CLASSES
=
(
'gm_tracer.middleware.TracerMiddleware'
,
'django.contrib.sessions.middleware.SessionMiddleware'
,
'django.middleware.common.CommonMiddleware'
,
'django.middleware.csrf.CsrfViewMiddleware'
,
'django.contrib.auth.middleware.AuthenticationMiddleware'
,
'django.contrib.auth.middleware.SessionAuthenticationMiddleware'
,
'django.contrib.messages.middleware.MessageMiddleware'
,
'django.middleware.clickjacking.XFrameOptionsMiddleware'
,
'helios.DjangoL5dMiddleware'
,
)
# Password validation
# https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators
# Internationalization
# https://docs.djangoproject.com/en/1.10/topics/i18n/
# LANGUAGE_CODE = 'en-us'
#
TIME_ZONE
=
'Asia/Shanghai'
USE_I18N
=
True
USE_L10N
=
True
#
# USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.10/howto/static-files/
STATIC_URL
=
'/static/'
CACHE_SECONDS
=
60
*
60
*
24
*
2
REDIS_HOST
=
'172.17.40.140'
REDIS_PW
=
'gHtmeIqBhVHtH8MG'
REDIS_TOPIC
=
{
'reply_cache'
:
{
'host'
:
REDIS_HOST
,
'port'
:
6379
,
'db'
:
9
,
'password'
:
REDIS_PW
},
'follow_cache'
:
{
'host'
:
REDIS_HOST
,
'port'
:
6379
,
'db'
:
10
,
'password'
:
REDIS_PW
},
'click_cache'
:
{
'host'
:
REDIS_HOST
,
'port'
:
6379
,
'db'
:
11
,
'password'
:
REDIS_PW
},
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment