Merge pull request #1054 from SkynetLabs/increase-buffer-size-to-fit-jwt

increase size of the buffer to fit jwt in cache key
This commit is contained in:
firyx 2021-08-05 14:53:37 +02:00 committed by GitHub
commit 8cd932fbbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -543,6 +543,7 @@ server {
proxy_cache skynet; # use general nginx cache
proxy_cache_key $uri+$skynet_jwt; # include skynet-jwt cookie (mapped to skynet_jwt)
proxy_cache_valid 200 401 1m; # cache success and unauthorized responses for 1 minute
proxy_buffer_size 8k; # increase size of the buffer to fit jwt in cache key
rewrite /accounts(.*) $1 break; # drop the /accounts prefix from uri
proxy_pass http://10.10.10.70:3000; # hardcoded ip because accounts might not be available