mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
add docker_local_settings and remove unnecessary REDIS settings definition in settings.py because it is already handled in local settings
This commit is contained in:
parent
54e31d2597
commit
5d82414563
2 changed files with 3 additions and 29 deletions
|
@ -81,9 +81,6 @@ DATABASES = {
|
||||||
'USER': 'newsblur',
|
'USER': 'newsblur',
|
||||||
'PASSWORD': 'newsblur',
|
'PASSWORD': 'newsblur',
|
||||||
'HOST': 'postgres',
|
'HOST': 'postgres',
|
||||||
'OPTIONS': {
|
|
||||||
"autocommit": True,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,6 +116,9 @@ REDIS_SESSIONS = {
|
||||||
'port': 6379
|
'port': 6379
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CELERY_REDIS_DB_NUM = 4
|
||||||
|
SESSION_REDIS_DB = 5
|
||||||
|
|
||||||
ELASTICSEARCH_FEED_HOSTS = ["elasticsearch:9200"]
|
ELASTICSEARCH_FEED_HOSTS = ["elasticsearch:9200"]
|
||||||
ELASTICSEARCH_STORY_HOSTS = ["elasticsearch:9200"]
|
ELASTICSEARCH_STORY_HOSTS = ["elasticsearch:9200"]
|
||||||
|
|
||||||
|
|
|
@ -543,32 +543,6 @@ class MasterSlaveRouter(object):
|
||||||
"Explicitly put all models on all databases."
|
"Explicitly put all models on all databases."
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# =========
|
|
||||||
# = Redis =
|
|
||||||
# =========
|
|
||||||
|
|
||||||
REDIS = {
|
|
||||||
'host': '127.0.0.1',
|
|
||||||
}
|
|
||||||
REDIS_PUBSUB = {
|
|
||||||
'host': '127.0.0.1',
|
|
||||||
}
|
|
||||||
REDIS_STORY = {
|
|
||||||
'host': '127.0.0.1',
|
|
||||||
}
|
|
||||||
REDIS_SESSIONS = {
|
|
||||||
'host': '127.0.0.1',
|
|
||||||
}
|
|
||||||
|
|
||||||
CELERY_REDIS_DB_NUM = 4
|
|
||||||
SESSION_REDIS_DB = 5
|
|
||||||
|
|
||||||
# =================
|
|
||||||
# = Elasticsearch =
|
|
||||||
# =================
|
|
||||||
|
|
||||||
ELASTICSEARCH_FEED_HOSTS = ['db_search_feed:9200']
|
|
||||||
ELASTICSEARCH_STORY_HOSTS = ['db_search_story:9200']
|
|
||||||
|
|
||||||
# ===============
|
# ===============
|
||||||
# = Social APIs =
|
# = Social APIs =
|
||||||
|
|
Loading…
Add table
Reference in a new issue