mirror of https://git.sr.ht/~sircmpwn/man.sr.ht
Read redis host from cfg.
This commit is contained in:
parent
32565f67ed
commit
fbc03ed029
|
@ -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]
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
try:
|
||||
from redis import StrictRedis as Redis
|
||||
except ImportError:
|
||||
from redis import Redis
|
||||
|
||||
redis = Redis()
|
Loading…
Reference in New Issue