Read redis host from cfg.

This commit is contained in:
Thorben Günther 2019-12-11 17:10:45 +01:00 committed by Drew DeVault
parent 32565f67ed
commit fbc03ed029
3 changed files with 4 additions and 7 deletions

View File

@ -25,6 +25,9 @@ service-key=
# A secret key to encrypt internal messages with. Use `srht-keygen network` to
# generate this. This should be consistent between all *.sr.ht sites and nodes.
network-key=
#
# The redis host url.
redis-host=
[mail]
#

View File

@ -3,10 +3,10 @@ from flask import Blueprint, render_template, abort, request, redirect
from srht.flask import session
from srht.markdown import markdown, extract_toc
from srht.oauth import UserType, current_user
from srht.redis import redis
from srht.validation import Validation
from scmsrht.urls import get_clone_urls
from mansrht.access import UserAccess, check_access
from mansrht.redis import redis
from mansrht.repo import GitsrhtBackend
from mansrht.types import User, Wiki, RootWiki
from mansrht.wikis import is_root_wiki

View File

@ -1,6 +0,0 @@
try:
from redis import StrictRedis as Redis
except ImportError:
from redis import Redis
redis = Redis()