mirror of
https://github.com/suitenumerique/messages.git
synced 2026-09-29 21:24:59 +02:00
Before, sending was done synchronously on the api/send POST call. Now we just build the MIME message and mark the message for sending, and queue the actual SMTP (or internal) sending for the worker. We use this opportunity to add fine-grained delivery statuses for each recipient, something that traditional email systems are unable to do! Expanding on that, this (too large) PR adds an initial Elasticsearch index of threads. It also overhauls the build and CI system, using Poetry instead of Pip.
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
server {
|
|
listen 8083;
|
|
server_name localhost;
|
|
charset utf-8;
|
|
|
|
# Proxy auth for media
|
|
# location /media/ {
|
|
# # Auth request configuration
|
|
# auth_request /media-auth;
|
|
# auth_request_set $authHeader $upstream_http_authorization;
|
|
# auth_request_set $authDate $upstream_http_x_amz_date;
|
|
# auth_request_set $authContentSha256 $upstream_http_x_amz_content_sha256;
|
|
|
|
# # Pass specific headers from the auth response
|
|
# proxy_set_header Authorization $authHeader;
|
|
# proxy_set_header X-Amz-Date $authDate;
|
|
# proxy_set_header X-Amz-Content-SHA256 $authContentSha256;
|
|
|
|
# # Get resource from Minio
|
|
# proxy_pass http://minio:9000/messages-media-storage/;
|
|
# proxy_set_header Host minio:9000;
|
|
# }
|
|
|
|
# location /media-auth {
|
|
# proxy_pass http://backend-dev:8000/api/v1.0/items/media-auth/;
|
|
# proxy_set_header Host $host;
|
|
# proxy_set_header X-Real-IP $remote_addr;
|
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
# proxy_set_header X-Original-URL $request_uri;
|
|
|
|
# # Prevent the body from being passed
|
|
# proxy_pass_request_body off;
|
|
# proxy_set_header Content-Length "";
|
|
# proxy_set_header X-Original-Method $request_method;
|
|
# }
|
|
|
|
location / {
|
|
proxy_pass http://keycloak:8080;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
}
|