social.data.coop: return 200 OK if datadog #132

Closed
reynir wants to merge 3 commits from datadog into main
1 changed files with 11 additions and 0 deletions

View File

@ -1,2 +1,13 @@
listen 3000;
client_max_body_size 50M; # default is 1M
if ($http_user_agent = "Datadog/Synthetics") {
return 200;
}
geo $jippi {
default 0;
78.143.68.141/32 1;
}
if ($jippi) {
return 200 "{\"uri\":\"social.data.coop\",\"title\":\"data.coop mastodon\",\"short_description\":\"Denne Mastodon server er for medlemmer af data.coop. Du er naturligvis velkommen til at melde dig ind i vores forening hvis du vil v\195\166re med! Mere info p\195\165 vores <a href=\\\"https://data.coop\\\">hjemmeside</a>.\",\"description\":\"\",\"email\":\"valberg@data.coop\",\"version\":\"4.0.2\",\"urls\":{\"streaming_api\":\"wss://social.data.coop\"},\"stats\":{\"user_count\":27277842,\"status_count\":496072784,\"domain_count\":9021},\"thumbnail\":\"https://social.data.coop/packs/media/images/preview-6399aebd96ccf025654e2977454f168f.png\",\"languages\":[\"en\"],\"registrations\":false,\"approval_required\":false,\"invites_enabled\":false,\"configuration\":{\"accounts\":{\"max_featured_tags\":10},\"statuses\":{\"max_characters\":500,\"max_media_attachments\":4,\"characters_reserved_per_url\":23},\"media_attachments\":{\"supported_mime_types\":[\"image/jpeg\",\"image/png\",\"image/gif\",\"image/heic\",\"image/heif\",\"image/webp\",\"image/avif\",\"video/webm\",\"video/mp4\",\"video/quicktime\",\"video/ogg\",\"audio/wave\",\"audio/wav\",\"audio/x-wav\",\"audio/x-pn-wave\",\"audio/vnd.wave\",\"audio/ogg\",\"audio/vorbis\",\"audio/mpeg\",\"audio/mp3\",\"audio/webm\",\"audio/flac\",\"audio/aac\",\"audio/m4a\",\"audio/x-m4a\",\"audio/mp4\",\"audio/3gpp\",\"video/x-ms-asf\"],\"image_size_limit\":10485760,\"image_matrix_limit\":16777216,\"video_size_limit\":41943040,\"video_frame_rate_limit\":60,\"video_matrix_limit\":2304000},\"polls\":{\"max_options\":4,\"max_characters_per_option\":50,\"min_expiration\":300,\"max_expiration\":2629746}},\"contact_account\":{\"id\":\"108262223709880500\",\"username\":\"valberg\",\"acct\":\"valberg\",\"display_name\":\"\",\"locked\":false,\"bot\":false,\"discoverable\":false,\"group\":false,\"created_at\":\"2022-05-07T00:00:00.000Z\",\"note\":\"\",\"url\":\"https://social.data.coop/@valberg\",\"avatar\":\"https://social.data.coop/system/accounts/avatars/108/262/223/709/880/500/original/88f3d1fd4f87d019.jpg\",\"avatar_static\":\"https://social.data.coop/system/accounts/avatars/108/262/223/709/880/500/original/88f3d1fd4f87d019.jpg\",\"header\":\"https://social.data.coop/headers/original/missing.png\",\"header_static\":\"https://social.data.coop/headers/original/missing.png\",\"followers_count\":8212948,\"following_count\":9098384,\"statuses_count\":10438484,\"last_status_at\":\"2022-12-02\",\"noindex\":true,\"emojis\":[],\"fields\":[]},\"rules\":[{\"id\":\"1\",\"text\":\"Do not hammer other people's servers.\"},{\"id\":\"2\",\"text\":\"Be gentle with public APIs.\"},{\"id\":\"3\",\"text\":\"Avoid collecting data as much as possible.\"},{\"id\":\"4\",\"text\":\"Data.coops Acceptable Usage Policy g\195\166lder for social.data.coop: https://git.data.coop/data.coop/dokumenter/src/branch/master/Acceptable%20Usage%20Policy.md\"}]}";
}