1
0
mirror of https://github.com/wallabag/docker synced 2025-12-13 09:46:27 +00:00

env variable to disable user registration

This commit is contained in:
Marvin Steadfast
2016-11-02 11:49:53 +01:00
parent 310d55bdea
commit c2052c2681
3 changed files with 3 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ Default login is `wallabag:wallabag`.
- `-e SYMFONY__ENV__MAILER_USER=...` (defaults to "~", the SMTP user)
- `-e SYMFONY__ENV__MAILER_PASSWORD=...`(defaults to "~", the SMTP password)
- `-e SYMFONY__ENV__FROM_EMAIL=...`(defaults to "wallabag@example.com", the address wallabag uses for outgoing emails)
- `-e SYMFONY__ENV__=FOSUSER_REGISTRATION...`(defaults to "true", enable or disable public user registration)
## SQLite

View File

@@ -18,6 +18,7 @@
mailer_user: "{{ lookup('env', 'SYMFONY__ENV__MAILER_USER')|default('~', true) }}"
mailer_password: "{{ lookup('env', 'SYMFONY__ENV__MAILER_PASSWORD')|default('~', true) }}"
from_email: "{{ lookup('env', 'SYMFONY__ENV__FROM_EMAIL')|default('wallabag@example.com', true) }}"
registration: "{{ lookup('env', 'SYMFONY__ENV__FOSUSER_REGISTRATION')|default('true', true) }}"
tasks:

View File

@@ -24,7 +24,7 @@ parameters:
twofactor_sender: no-reply@wallabag.org
# fosuser stuff
fosuser_registration: true
fosuser_registration: {{ registration }}
fosuser_confirmation: true
from_email: {{ from_email }}