Skip to content

Commit

Permalink
prefer 127.0.0.1 over localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
furlongm committed Dec 2, 2020
1 parent 2658be1 commit 49d2e7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ Install Celery for realtime processing of reports from clients:

```shell
apt -y install python3-celery redis python3-redis python-celery-common
C_FORCE_ROOT=1 celery worker --loglevel=info -b redis://localhost:6379/0 -E -A patchman
C_FORCE_ROOT=1 celery worker --loglevel=info -b redis://127.0.0.1:6379/0 -E -A patchman
```

#### CentOS / RHEL
Expand All @@ -321,7 +321,7 @@ C_FORCE_ROOT=1 celery worker --loglevel=info -b redis://localhost:6379/0 -E -A p
dnf -y install python3-celery redis python3-redis
systemctl restart redis-server
semanage port -a -t http_port_t -p tcp 6379
C_FORCE_ROOT=1 celery worker --loglevel=info -b redis://localhost:6379/0 -E -A patchman
C_FORCE_ROOT=1 celery worker --loglevel=info -b redis://127.0.0.1:6379/0 -E -A patchman

```

Expand Down
2 changes: 1 addition & 1 deletion patchman/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
THIRD_PARTY_APPS += ['celery']
CELERY_IMPORTS = ['reports.tasks']
USE_ASYNC_PROCESSING = True
BROKER_URL = 'redis://localhost:6379/0'
CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'

LOGIN_REDIRECT_URL = '/patchman/'
LOGOUT_REDIRECT_URL = '/patchman/login/'
Expand Down

0 comments on commit 49d2e7b

Please sign in to comment.