-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathnginx_gcs_proxy.conf
More file actions
23 lines (22 loc) · 917 Bytes
/
Copy pathnginx_gcs_proxy.conf
File metadata and controls
23 lines (22 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Authorization "";
proxy_set_header Host storage.googleapis.com;
proxy_hide_header X-GUploader-UploadID;
proxy_hide_header x-goog-generation;
proxy_hide_header x-goog-metageneration;
proxy_hide_header x-goog-stored-content-encoding;
proxy_hide_header x-goog-stored-content-length;
proxy_hide_header x-goog-meta-goog-reserved-file-mtime;
proxy_hide_header x-goog-hash;
proxy_hide_header x-goog-storage-class;
proxy_hide_header Accept-Ranges;
proxy_hide_header Alt-Svc;
proxy_hide_header Set-Cookie;
proxy_ignore_headers Set-Cookie;
proxy_intercept_errors on;
proxy_cache gcs_cache;
proxy_cache_lock on;
proxy_cache_revalidate on;
add_header X-Cache-Status $upstream_cache_status;
add_header Cache-Control "max-age=31536000";