|
*Note: these are preliminary notes about using Google Cloud Storage as a CDN service*
|
|
*Note: these are preliminary notes about using Google Cloud Storage as a CDN service*
|
|
|
|
|
|
The documentation home is https://developers.google.com/storage/index. The main tool is `gsutil`. Note: due to rapid development a lot of information on the web uses outdated syntax (but is still useful, e.g., https://gist.github.com/mhulse/4362104).
|
|
## Preliminaries
|
|
|
|
|
|
### Copying:
|
|
* The documentation home is https://developers.google.com/storage/index.
|
|
|
|
* The main tool is `gsutil`.
|
|
|
|
* Note: due to rapid development a lot of information on the web uses outdated syntax (but is still useful, e.g., https://gist.github.com/mhulse/4362104).
|
|
|
|
|
|
|
|
### Copying
|
|
|
|
|
|
Notes: recursively (-R), compressed (-z), verbose (-v) https://developers.google.com/storage/docs/gsutil/commands/cp
|
|
Notes: recursively (-R), compressed (-z), verbose (-v) https://developers.google.com/storage/docs/gsutil/commands/cp
|
|
|
|
|
... | @@ -55,4 +59,12 @@ Notes: https://developers.google.com/storage/docs/gsutil/commands/setmeta |
... | @@ -55,4 +59,12 @@ Notes: https://developers.google.com/storage/docs/gsutil/commands/setmeta |
|
|
|
|
|
EOT and SVG are detected correctly during upload. WOFF is set to the old `x-font/woff`, so needs changing (and a bug report at Google).
|
|
EOT and SVG are detected correctly during upload. WOFF is set to the old `x-font/woff`, so needs changing (and a bug report at Google).
|
|
|
|
|
|
Note: unfortunately we can't just use something like gs//mathjax-cdn/*.otf (or cane we? https://developers.google.com/storage/docs/gsutil/addlhelp/WildcardNames) |
|
Note: unfortunately we can't just use something like gs//mathjax-cdn/*.otf
|
|
\ No newline at end of file |
|
|
|
|
|
or can we? https://developers.google.com/storage/docs/gsutil/addlhelp/WildcardNames)
|
|
|
|
|
|
|
|
Yes. E.g. ``gsutil ls gs://mathjax-cdn/mathjax/2.3-latest/fonts/HTML-CSS/**.woff`` will list all woff files in subfolders.
|
|
|
|
|
|
|
|
## TODO
|
|
|
|
|
|
|
|
* test scripts to check setup |
|
|
|
\ No newline at end of file |