feat: add compression negotiation for sent messages (#91)
feat: add compression negotiation for sent messages fix: unix homedir handling the service will negotiate a compression algo for sending messages when a user chats someone during the auto discovery, the service returns an `Accept-Encoding: br, gzip, deflate` the client saves that response and so when it makes POSTs of messages adds the best `Content-Encoding` and compresses the message example: ``` >> GET /.well-known/salty/c765c69040d98f3af2181237f47ec01398d80f8ab2690fe929e4311ab05dec01.json << Accept-Encoding: br, gzip, deflate << << {"endpoint":"https://salty.home.arpa/inbox/01FZBR8Y2E6TH949JA3925WF71","key":"kex1wurry09ftqjuxgjl0jxmqypv4axqvzqljkgeadxjcpwtfuhcedcslck52d"} >> POST /inbox/01FZBR8Y2E6TH949JA3925WF71 >> Content-Encoding: br >> >> [Brotli Compressed data] ``` this PR depends on prologic/msgbus#24 Co-authored-by: Jon Lundy <jon@xuu.cc> Reviewed-on: #91 Co-authored-by: xuu <xuu@noreply@mills.io> Co-committed-by: xuu <xuu@noreply@mills.io>pull/92/head
parent
f9fa628e75
commit
754fcc7323
@ -1,9 +1,5 @@ |
||||
salty.home.arpa { |
||||
tls internal |
||||
|
||||
file_server * browse { |
||||
root data/ |
||||
} |
||||
|
||||
reverse_proxy /inbox/* http://127.0.0.1:8000 |
||||
reverse_proxy http://127.0.0.1:8000 |
||||
} |
Binary file not shown.
Loading…
Reference in new issue