Messagerie Bobinoo : https://mail.bobinoo.org, interface de contact@bobinoo.org
- Site à part (mail/, build:mail → dist-mail/) aux couleurs de Bobinoo : dossiers (réception, envoyés, brouillons, indésirables, corbeille), liste, lecture, pièces jointes, écrire / répondre / transférer, non lu, indésirable, corbeille, suppression définitive, recherche, vérification chaque minute. - E-mails HTML nettoyés (DOMPurify) et affichés dans un cadre isolé sans script ; images distantes bloquées par défaut (« Afficher les images »). - Fonction Edge « mail » (déployée) : IMAP / SMTP vers la boîte OVH (mot de passe MAIL_PASSWORD côté serveur), copie des envois dans « Envoyés ». Mêmes verrous que la console : secret X-Admin-Gate, compte admin + double authentification, limite d'appels, journal. - nginx : mail.conf sert la messagerie (CSP, sans cache, noindex) et relaie /api/mail ; webmail.bobinoo.org renvoie vers mail.bobinoo.org. Guide : docs/mail.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
21 files changed
+1489
-12
No files matched your search
+64
-4
@@ -1,9 +1,69 @@
|
||||
# Raccourci vers la boîte contact@bobinoo.org : https://mail.bobinoo.org ouvre le webmail OVH (Zimbra).
|
||||
# Incluse par site.conf. Le HTTPS est assuré par le proxy en façade du VPS (en-tête Host transmis), comme pour bobinoo.org.
|
||||
# Messagerie Bobinoo (docs/mail.md) : https://mail.bobinoo.org, interface de contact@bobinoo.org (boîte OVH Zimbra).
|
||||
# Incluse par site.conf, livrée avec chaque release. HTTPS assuré par le proxy en façade du VPS (en-tête Host transmis).
|
||||
# Mêmes protections que la console : compte Bobinoo admin + code de double authentification, secret entre ce serveur
|
||||
# et la fonction Edge « mail », nombre d'appels limité, journal.
|
||||
|
||||
limit_req_zone $server_name zone=bobinoo_mail:1m rate=120r/m;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name mail.bobinoo.org webmail.bobinoo.org;
|
||||
server_name mail.bobinoo.org;
|
||||
server_tokens off;
|
||||
|
||||
root /srv/azuucine/current/mail;
|
||||
index index.html;
|
||||
include /etc/nginx/mime.types;
|
||||
|
||||
# Styles en ligne autorisés : le contenu des e-mails en a besoin (il est affiché dans un cadre isolé, sans script).
|
||||
# Images https autorisées : bloquées par défaut par l'interface, chargées seulement sur « Afficher les images ».
|
||||
add_header Content-Security-Policy "default-src 'none'; script-src 'self'; style-src 'self' 'unsafe-inline'; font-src 'self' data:; img-src 'self' data: blob: https:; connect-src 'self' https://qfgnxonqwldcfdjqhhjz.supabase.co; frame-src 'self'; base-uri 'none'; form-action 'self'; frame-ancestors 'none'" always;
|
||||
add_header Strict-Transport-Security "max-age=63072000" always;
|
||||
add_header X-Frame-Options "DENY" always;
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header Referrer-Policy "no-referrer" always;
|
||||
add_header X-Robots-Tag "noindex, nofollow" always;
|
||||
return 302 https://www.ovhcloud.com/fr/mail/;
|
||||
add_header Cache-Control "no-store" always;
|
||||
add_header Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=()" always;
|
||||
|
||||
# Relais vers la fonction serveur « mail », avec le même secret que la console (/etc/nginx/bobinoo-admin-gate.conf)
|
||||
location = /api/mail {
|
||||
limit_except POST { deny all; }
|
||||
limit_req zone=bobinoo_mail burst=40 nodelay;
|
||||
limit_req_status 429;
|
||||
client_max_body_size 256k;
|
||||
resolver 1.1.1.1 9.9.9.9 valid=300s ipv6=off;
|
||||
resolver_timeout 5s;
|
||||
set $supabase qfgnxonqwldcfdjqhhjz.supabase.co;
|
||||
proxy_pass https://$supabase/functions/v1/mail;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
proxy_ssl_server_name on;
|
||||
proxy_ssl_name $supabase;
|
||||
proxy_set_header Host $supabase;
|
||||
proxy_set_header Cookie "";
|
||||
proxy_set_header X-Forwarded-For "";
|
||||
include /etc/nginx/bobinoo-admin-gate*.conf;
|
||||
proxy_read_timeout 60s;
|
||||
}
|
||||
|
||||
location = /robots.txt {
|
||||
default_type text/plain;
|
||||
return 200 "User-agent: *\nDisallow: /\n";
|
||||
}
|
||||
|
||||
location /assets/ {
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
}
|
||||
|
||||
# Autre adresse : renvoie vers la messagerie
|
||||
server {
|
||||
listen 80;
|
||||
server_name webmail.bobinoo.org;
|
||||
server_tokens off;
|
||||
return 301 https://mail.bobinoo.org/;
|
||||
}
|
||||
@@ -48,5 +48,5 @@ server {
|
||||
# Console d'administration : https://admin.bobinoo.org (voir admin.conf et docs/admin.md)
|
||||
include /srv/azuucine/current/nginx/admin.conf;
|
||||
|
||||
# Raccourci vers le webmail de contact@bobinoo.org : https://mail.bobinoo.org (voir mail.conf)
|
||||
# Messagerie de contact@bobinoo.org : https://mail.bobinoo.org (voir mail.conf et docs/mail.md)
|
||||
include /srv/azuucine/current/nginx/mail.conf;
|
||||
Reference in new issue
Block a user