diff --git a/README.md b/README.md index 56c3662..6df5fe6 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/root/etc/ansible/entrypoint.yml b/root/etc/ansible/entrypoint.yml index a641cf2..9f44a4d 100644 --- a/root/etc/ansible/entrypoint.yml +++ b/root/etc/ansible/entrypoint.yml @@ -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: diff --git a/root/etc/ansible/templates/parameters.yml.j2 b/root/etc/ansible/templates/parameters.yml.j2 index ed771da..c994aff 100644 --- a/root/etc/ansible/templates/parameters.yml.j2 +++ b/root/etc/ansible/templates/parameters.yml.j2 @@ -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 }}