email: Documentation, code cleanup

- Audit: finalize MainCfDiagnosis API
- Doc: document Diagnosis models
- Doc: remove hacky imports and replace them with autodoc mock imports
- Views: add `email_` prefix to email server templates
- Apache: delete unnecessary directives (robots tag, cookie header etc.)
This commit is contained in:
fliu authored and Sunil Mohan Adapa committed 2021-08-17 19:44:17 -07:00
1 parent ea8150d9dd
commit 5a9c7e5077
13 files changed
+127 -69

No files matched your search

@@ -1,6 +1,5 @@
<LocationMatch "^/rspamd$">
Redirect "/rspamd/"
Include includes/freedombox-robots.conf
</LocationMatch>
<Location "/rspamd/">
@@ -25,17 +24,9 @@
</IfModule>
</Location>
<Location "/plinth/apps/email_server/*.xml">
# Require SSO
Include includes/freedombox-single-sign-on.conf
<IfModule mod_auth_pubtkt.c>
TKTAuthToken "admin"
<Location "/.well-known/autoconfig/mail/config-v1.1.xml">
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^ /plinth/apps/email_server/config.xml [PT]
</IfModule>
</Location>
<Location "/.well-known/autoconfig/mail/config-v1.1.xml">
ProxyPass http://127.0.0.1:8000/plinth/apps/email_server/config.xml
RequestHeader unset Cookie
Header unset Set-Cookie
Include includes/freedombox-robots.conf
</Location>