Skip to content

Commit d9f42e8

Browse files
committed
使用redis替换rabbitmq, 增加新ip
1 parent 8f06dab commit d9f42e8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

configs/settings.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727

2828
# SECURITY WARNING: don't run with debug turned on in production!
2929
DEBUG = False
30-
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', 'itech.kim', 'www.itech.kim'
31-
'120.24.191.19', 'cblog.xyz', 'www.cblog.xyz']
30+
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', 'itech.kim', 'www.itech.kim',
31+
'120.24.191.19', 'cblog.xyz', 'www.cblog.xyz', '120.79.224.215']
3232

3333
# Application definition
3434

@@ -200,5 +200,5 @@
200200
MEDIA_URL = '/media/'
201201
# MEDIAFILES = os.path.join(BASE_DIR, 'blog/media')
202202

203-
BROKER_URL = 'amqp://guest:guest@localhost:5672/'
204-
CELERY_RESULT_BACKEND = 'amqp'
203+
CELERY_BROKER_URL = 'redis://localhost:6379/2'
204+
CELERY_RESULT_BACKEND = 'redis://localhost:6379/2'

0 commit comments

Comments
 (0)