fix multiple issues from user exports config changes
- improve nginx config - fix DATA_UPLOAD_MAX_MEMORY_SIZE default not being an int - translate fallback value in id_to_username template tag - make location of setting to turn on user exports easier to locate for admins fixes #3227 fixes #3231 fixes #3232 fixes #3236
This commit is contained in:
parent
fd0b1d90b0
commit
ddc35a7a52
6 changed files with 35 additions and 11 deletions
|
@ -443,4 +443,4 @@ if HTTP_X_FORWARDED_PROTO:
|
|||
# user with the same username - in which case you should change it!
|
||||
INSTANCE_ACTOR_USERNAME = "bookwyrm.instance.actor"
|
||||
|
||||
DATA_UPLOAD_MAX_MEMORY_SIZE = env.int("DATA_UPLOAD_MAX_MEMORY_SIZE", (1024**2 * 100))
|
||||
DATA_UPLOAD_MAX_MEMORY_SIZE = env.int("DATA_UPLOAD_MAX_MEMORY_SIZE", 104857600)
|
||||
|
|
|
@ -49,6 +49,13 @@
|
|||
{% if not site.user_exports_enabled %}
|
||||
<p class="notification is-danger">
|
||||
{% trans "New user exports are currently disabled." %}
|
||||
{% if perms.bookwyrm.edit_instance_settings %}
|
||||
{% spaceless %}
|
||||
{% blocktrans%}
|
||||
<br/>User exports settings can be changed from <a href="/settings/imports">the Imports page</a> in the Admin dashboard.
|
||||
{% endblocktrans %}
|
||||
{% endspaceless %}
|
||||
{% endif%}
|
||||
</p>
|
||||
{% elif next_available %}
|
||||
<p class="notification is-warning">
|
||||
|
|
|
@ -126,7 +126,7 @@ def id_to_username(user_id):
|
|||
value = f"{name}@{domain}"
|
||||
|
||||
return value
|
||||
return "a new user account"
|
||||
return _("a new user account")
|
||||
|
||||
|
||||
@register.filter(name="get_file_size")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue