add optional sections for hidden services and redis volatile
This commit is contained in:
parent
d3a70a005f
commit
c607019c5b
3 changed files with 7 additions and 1 deletions
|
@ -43,7 +43,7 @@ smtp_server: mail.example.com
|
|||
smtp_port: 465
|
||||
smtp_password: "{{ vault_mastodon_admin_mail_password }}"
|
||||
|
||||
|
||||
allow_hidden_services: false
|
||||
#Use HTTP only for Vagrant testing or for reverse proxy purposes.
|
||||
use_http: true
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ services:
|
|||
- ./postgres14:/var/lib/postgresql/data
|
||||
env_file: .env.production
|
||||
|
||||
{% if allow_hidden_services %}
|
||||
tor:
|
||||
image: sirboops/tor
|
||||
networks:
|
||||
|
@ -27,6 +28,7 @@ services:
|
|||
- external_network
|
||||
- internal_network
|
||||
|
||||
{% endif %}
|
||||
redis:
|
||||
restart: always
|
||||
image: redis:7-alpine
|
||||
|
|
|
@ -68,8 +68,10 @@ DB_PORT=5432
|
|||
REDIS_HOST={{ redis_host }}
|
||||
REDIS_PORT={{ redis_port }}
|
||||
|
||||
{% if redis_volatile %}
|
||||
CACHE_REDIS_HOST={{ redis_cache_host }}
|
||||
CACHE_REDIS_PORT={{ redis_cache_port }}
|
||||
{% endif %}
|
||||
|
||||
# elasticsearch
|
||||
ES_JAVA_OPTS=-Xms512m -Xmx512m
|
||||
|
@ -82,9 +84,11 @@ ES_PORT={{ es_port }}
|
|||
ES_USER={{ es_user }}
|
||||
ES_PASS={{ es_pass }}
|
||||
|
||||
{% if allow_hidden_services %}
|
||||
# Tor
|
||||
http_proxy=http://privoxy:8118
|
||||
ALLOW_ACCESS_TO_HIDDEN_SERVICE=true
|
||||
{% endif %}
|
||||
|
||||
# IP and session retention
|
||||
# -----------------------
|
||||
|
|
Loading…
Reference in a new issue