This commit is contained in:
2026-08-10 14:37:39 +12:00
commit d53e7eef37
4 changed files with 105 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
{$WEBMAIL_SUBDOMAIN}.{$DOMAIN_NAME} {
{$CADDY_TLS}
reverse_proxy email_frontend:3000
}
{$MAIL_SUBDOMAIN}.{$DOMAIN_NAME} {
{$CADDY_TLS}
reverse_proxy email_backend:8080
header {
Access-Control-Allow-Origin "https://{$WEBMAIL_SUBDOMAIN}.{$DOMAIN_NAME}"
Access-Control-Allow-Credentials "true"
Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE"
Access-Control-Allow-Headers "Authorization, Content-Type, X-JMAP-Prefix, X-JMAP-Framework"
}
@options method OPTIONS
respond @options 204
}