ppy / s3-nginx-proxy

A lightweight kubernetes deployable nginx-based caching reverse proxy
MIT License
27 stars 4 forks source link

MalformedSecurityHeader Error when requested to GCS #4

Open Nasfy opened 1 year ago

Nasfy commented 1 year ago

Got an error connecting to storage.googleapis.com Screenshot from 2023-03-13 18-03-09 Using ngx.cookie_time(ngx.time()) we get Date: "Thu, 18-Nov-10 11:27:35 GMT" in request header With this format, the request to s3 passes normally, but to gcs falls. After some experimentation, I came to the conclusion that ngx.http_time(ngx.time()) working for s3 and gcs also. Maybe ngx.http_time more efficient than ngx.cookie_time?