Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@
status = 200
force = true

## campaign urls for logging to datad
[[redirects]]
from = "/campaigns/"
to = "https://api.shift2bikes.org/api/campaigns"
status = 200
force = true

## ---------------------------------------------------------------------------
## legacy links
## ---------------------------------------------------------------------------
Expand Down
9 changes: 9 additions & 0 deletions services/nginx/conf.d/shift.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ server {
# and to be a little forgiving generally.
client_max_body_size 5250k;

# -----------------------------------------------
# special end point which exists to record into datadog
# simply redirects back to the main page
# -----------------------------------------------

location ^~ /api/campaigns {
return 301 https://shift2bikes.org/;
}

# -----------------------------------------------
# node endpoints
# note: these uses "http://node" because the docker containers
Expand Down