[openstreetmap/openstreetmap-website] Update embed.js.erb to use CDN test URLs (#2714)
Tom Hughes
notifications at github.com
Wed Jul 22 15:00:13 UTC 2020
To explain further, this is the bit of VCL that chooses the upstream:
```
# Snippet Choose Backend : 100
if ( client.geo.continent_code == "OC" ) {
set req.backend = australia;
} else if ( client.geo.continent_code == "NA" ||
client.geo.continent_code == "SA" ) {
set req.backend = america;
} else {
set req.backend = europe;
}
# default conditions
set req.backend = F_Odin___Amsterdam;
# end default conditions
```
The first bit is my custom VCL which replaces your previous condition based attempt with a version that does better fallback.
But that that choice is overwritten by some fastly generated VCL that I can't work out how to get rid of.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2714#issuecomment-662504168
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200722/7afb7736/attachment.htm>
More information about the rails-dev
mailing list