mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	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:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							84fa9be73a
						
					
				
				
					commit
					e6fa1f5436
				
			@@ -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.",
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user