Browse Source

Disable account registration for gitea and commento

Thomas Buck 5 years ago
parent
commit
08a0e8efd7

+ 1
- 0
roles/blog/templates/etc_systemd_system_commento.j2 View File

@@ -19,6 +19,7 @@ Environment=COMMENTO_SMTP_PORT=25
19 19
 Environment=COMMENTO_SMTP_USERNAME=example@gmail.com
20 20
 Environment=COMMENTO_SMTP_PASSWORD=hunter2
21 21
 Environment=COMMENTO_SMTP_FROM_ADDRESS=no-reply@{{ commento_subdomain }}.{{ domain }}
22
+Environment=COMMENTO_FORBID_NEW_OWNERS=true
22 23
 
23 24
 [Install]
24 25
 WantedBy=multi-user.target

+ 4
- 0
roles/gitea/templates/etc_gitea_app_ini.j2 View File

@@ -24,6 +24,10 @@ USER = {{ gitea_db_username }}
24 24
 PASSWD = `{{ gitea_db_password }}`
25 25
 SSL_MODE = disable
26 26
 
27
+[service]
28
+DISABLE_REGISTRATION = true
29
+ENABLE_NOTIFY_MAIL = true
30
+
27 31
 [security]
28 32
 INSTALL_LOCK = true
29 33
 SECRET_KEY = {{ gitea_secret }}

Loading…
Cancel
Save