Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Walko
funkwhale
Commits
d27ea30b
Verified
Commit
d27ea30b
authored
6 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Fix
#640
: support connecting with to a password protected redis server
parent
ab7c9d51
Branches
master
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
api/config/settings/common.py
+2
-3
2 additions, 3 deletions
api/config/settings/common.py
changes/changelog.d/640.enhancement
+2
-0
2 additions, 0 deletions
changes/changelog.d/640.enhancement
deploy/env.prod.sample
+4
-1
4 additions, 1 deletion
deploy/env.prod.sample
dev.yml
+1
-1
1 addition, 1 deletion
dev.yml
with
9 additions
and
5 deletions
api/config/settings/common.py
+
2
−
3
View file @
d27ea30b
...
...
@@ -13,7 +13,7 @@ from __future__ import absolute_import, unicode_literals
import
datetime
import
logging
from
urllib.parse
import
urlparse
,
urlsplit
from
urllib.parse
import
urlsplit
import
environ
from
celery.schedules
import
crontab
...
...
@@ -420,11 +420,10 @@ CACHES = {
CACHES
[
"
default
"
][
"
BACKEND
"
]
=
"
django_redis.cache.RedisCache
"
cache_url
=
urlparse
(
CACHES
[
"
default
"
][
"
LOCATION
"
])
CHANNEL_LAYERS
=
{
"
default
"
:
{
"
BACKEND
"
:
"
channels_redis.core.RedisChannelLayer
"
,
"
CONFIG
"
:
{
"
hosts
"
:
[
(
cache_url
.
hostname
,
cache_url
.
port
)
]},
"
CONFIG
"
:
{
"
hosts
"
:
[
CACHES
[
"
default
"
][
"
LOCATION
"
]
]},
}
}
...
...
This diff is collapsed.
Click to expand it.
changes/changelog.d/640.enhancement
0 → 100644
+
2
−
0
View file @
d27ea30b
Officially support connecting to a password protected redis server, with
the redis://:password@localhost:6379/0 scheme (#640)
This diff is collapsed.
Click to expand it.
deploy/env.prod.sample
+
4
−
1
View file @
d27ea30b
...
...
@@ -70,7 +70,10 @@ REVERSE_PROXY_TYPE=nginx
# Cache configuration
# Examples:
# CACHE_URL=redis://<host>:<port>/<database>
# CACHE_URL=redis://localhost:6379/0
# CACHE_URL=redis://localhost:6379/0c
# With a password:
# CACHE_URL=redis://:password@localhost:6379/0
# (the extra semicolon is important)
# Use the next one if you followed Debian installation guide
# CACHE_URL=redis://127.0.0.1:6379/0
...
...
This diff is collapsed.
Click to expand it.
dev.yml
+
1
−
1
View file @
d27ea30b
...
...
@@ -99,7 +99,7 @@ services:
-
"
FUNKWHALE_FRONT_PORT=${VUE_PORT-8080}"
-
"
COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME-
}"
-
"
FUNKWHALE_HOSTNAME=${FUNKWHALE_HOSTNAME-localhost}"
links
:
depends_on
:
-
api
-
front
volumes
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment