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:
@@ -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
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user