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
alpha
physical
Commits
e9155030
Commit
e9155030
authored
Nov 21, 2019
by
钟尚武
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'refactor' into 'master'
fix settings_local See merge request
!589
parents
f5ab5eed
56f02a98
Pipeline
#4809
passed with stage
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
96 additions
and
0 deletions
+96
-0
settings_local.py
deploy/prod/settings_local.py
+48
-0
settings_local.py
deploy/stage/settings_local.py
+48
-0
No files found.
deploy/prod/settings_local.py
View file @
e9155030
...
...
@@ -211,3 +211,50 @@ KAFKA_TOPIC_NAME = "gm-maidian-data"
KAFKA_GM_LOGGING_TOPIC_NAME
=
"gm-logging-prod"
SLAVE_DB_NAME
=
'slave'
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 @
e9155030
...
...
@@ -211,3 +211,50 @@ KAFKA_TOPIC_NAME = "gm-maidian-data"
KAFKA_GM_LOGGING_TOPIC_NAME
=
"gm-logging-prod"
SLAVE_DB_NAME
=
'slave'
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