mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Change recommended redis socket path to avoid systemd problems
This commit is contained in:
@@ -74,7 +74,7 @@ redis instance to be running on the same host. To avoid the hassle with network
|
|||||||
recommend connecting to redis via a unix socket. To enable redis on unix sockets, add the following to your
|
recommend connecting to redis via a unix socket. To enable redis on unix sockets, add the following to your
|
||||||
``/etc/redis/redis.conf``::
|
``/etc/redis/redis.conf``::
|
||||||
|
|
||||||
unixsocket /tmp/redis.sock
|
unixsocket /var/run/redis/redis.sock
|
||||||
unixsocketperm 777
|
unixsocketperm 777
|
||||||
|
|
||||||
Now restart redis-server::
|
Now restart redis-server::
|
||||||
@@ -127,14 +127,14 @@ Fill the configuration file ``/etc/pretix/pretix.cfg`` with the following conten
|
|||||||
host=172.17.0.1
|
host=172.17.0.1
|
||||||
|
|
||||||
[redis]
|
[redis]
|
||||||
location=unix:///tmp/redis.sock?db=0
|
location=unix:///var/run/redis/redis.sock?db=0
|
||||||
; Remove the following line if you are unsure about your redis' security
|
; Remove the following line if you are unsure about your redis' security
|
||||||
; to reduce impact if redis gets compromised.
|
; to reduce impact if redis gets compromised.
|
||||||
sessions=true
|
sessions=true
|
||||||
|
|
||||||
[celery]
|
[celery]
|
||||||
backend=redis+socket:///tmp/redis.sock?virtual_host=1
|
backend=redis+socket:///var/run/redis/redis.sock?virtual_host=1
|
||||||
broker=redis+socket:///tmp/redis.sock?virtual_host=2
|
broker=redis+socket:///var/run/redis/redis.sock?virtual_host=2
|
||||||
|
|
||||||
See :ref:`email configuration <mail-settings>` to learn more about configuring mail features.
|
See :ref:`email configuration <mail-settings>` to learn more about configuring mail features.
|
||||||
|
|
||||||
@@ -160,7 +160,7 @@ named ``/etc/systemd/system/pretix.service`` with the following content::
|
|||||||
ExecStart=/usr/bin/docker run --name %n -p 8345:80 \
|
ExecStart=/usr/bin/docker run --name %n -p 8345:80 \
|
||||||
-v /var/pretix-data:/data \
|
-v /var/pretix-data:/data \
|
||||||
-v /etc/pretix:/etc/pretix \
|
-v /etc/pretix:/etc/pretix \
|
||||||
-v /tmp/redis.sock:/tmp/redis.sock \
|
-v /var/run/redis:/var/run/redis \
|
||||||
-v /var/run/mysqld:/var/run/mysqld \
|
-v /var/run/mysqld:/var/run/mysqld \
|
||||||
pretix/standalone all
|
pretix/standalone all
|
||||||
ExecStop=/usr/bin/docker stop %n
|
ExecStop=/usr/bin/docker stop %n
|
||||||
|
|||||||
Reference in New Issue
Block a user