Browse Source

Disable account registration for gitea and commento

Thomas Buck 6 years ago
parent
commit
08a0e8efd7

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

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

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

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

Loading…
Cancel
Save