email_mirror_message: Move endpoint under /api/internal/.

This also has the side effect that it saves the endpint from being
improperly redirected by the HostDomainMiddleware's canonicalization
code.
This commit is contained in:
Alex Vandiver
2024-02-08 19:15:01 +00:00
committed by Tim Abbott
parent 84fa9be73a
commit e6fa1f5436
3 changed files with 6 additions and 13 deletions

View File

@@ -32,7 +32,7 @@ Also you can use optional keys to configure the script and change default values
-d HOST Destination Zulip host for email uploading. Address must contain type of
HTTP protocol, e.g. "https://example.com". Default value: "https://127.0.0.1".
-u URL Destination relative for email uploading. Default value: "/email_mirror_message".
-u URL Destination relative for email uploading. Default value: "/api/internal/email_mirror_message".
-n Disable checking ssl certificate. This option is used for
self-signed certificates. Default value: False.
@@ -76,7 +76,7 @@ parser.add_argument(
"-u",
"--dst-url",
dest="url",
default="/email_mirror_message",
default="/api/internal/email_mirror_message",
help="Destination relative URL for uploading email from email mirror.",
)