Skip to content

Commit

Permalink
Environment variables for upload quota
Browse files Browse the repository at this point in the history
  • Loading branch information
youmad committed Nov 6, 2018
1 parent 9a965b7 commit 37f55f8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions conf/ejabberd.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ listen:
http_bind: true
http_poll: true
## register: true
{%- if env.get('EJABBERD_CAPTCHA', 'false') == "true" %}
{%- if env.get('EJABBERD_CAPTCHA', false) == "true" %}
captcha: true
{% endif %}
{%- if env['EJABBERD_HTTPS'] == "true" %}
Expand Down Expand Up @@ -301,9 +301,9 @@ access:
trusted_network:
loopback: allow
soft_upload_quota:
all: 400 # MiB
all: {{ env.get('EJABBERD_SOFT_UPLOAD_QUOTA', 400) }} # MiB
hard_upload_quota:
all: 500 # MiB
all: {{ env.get('EJABBERD_HARD_UPLOAD_QUOTA', 500) }} # MiB


language: "en"
Expand Down Expand Up @@ -340,7 +340,7 @@ modules:
put_url: "http://@HOST@:5443"
{% endif %}
mod_http_upload_quota:
max_days: 10
max_days: {{ env.get('EJABBERD_UPLOAD_QUOTA_MAX_DAYS', 10) }}
mod_last: {}
mod_mam:
default: always
Expand Down Expand Up @@ -386,7 +386,7 @@ modules:
mod_push: {}
mod_push_keepalive: {}
mod_register:
{%- if env.get('EJABBERD_CAPTCHA', 'false') == "true" %}
{%- if env.get('EJABBERD_CAPTCHA', false) == "true" %}
##
## Protect In-Band account registrations with CAPTCHA.
##
Expand Down Expand Up @@ -468,7 +468,7 @@ redis_reconnect_timeout: {{ env['EJABBERD_REDIS_RECONNECT_TIMEOUT'] or 1 }}
redis_connect_timeout: {{ env['EJABBERD_REDIS_CONNECT_TIMEOUT'] or 1 }}
{% endif %}

{%- if env.get('EJABBERD_CAPTCHA', 'false') == "true" %}
{%- if env.get('EJABBERD_CAPTCHA', false) == "true" %}
### =======
### CAPTCHA
##
Expand Down

0 comments on commit 37f55f8

Please sign in to comment.