codehub.3scale.net
Error 404 and report if app plan doesn't match | 3scale Documentation
http://codehub.3scale.net/nginx/lua/reporting/2014/08/14/Error404andReportIfAppPlanNoMatch
Error 404 and report if app plan doesn't match. Check if the application plan of an incoming API request matches a predefined one. If it doesn't, return a 404 error but report the call to 3scale. If it matches, allow the call to go through as expected. Http:/ threescale backend/transactions.xml. Authrep - - - - - - - - - - - - - -. IN HERE YOU DEFINE THE ERROR IF CREDENTIALS ARE PASSED, BUT THEY ARE NOT VALID. Remove the key, if its not 200 lets go the slow route, to 3scales backend.
codehub.3scale.net
Javascript snippets | 3scale Documentation
http://codehub.3scale.net/js
Pull multiple swagger spec on single cms page. This snippet allows you to pull mulitple swagger json spec. Signup Express in Node. Adding "Signup Express" function as called in the 3scale API. Redirect to external login. Using this snippet in any page in the developer portal.
codehub.3scale.net
Developer Portal snippets | 3scale Documentation
http://codehub.3scale.net/developerportal
Pull multiple swagger spec on single cms page. This snippet allows you to pull mulitple swagger json spec. Showing pricing rules for appliation plans. This snippet will show the pricing rules for a specific. Hiding deleted applications in the developer portal. Applications cannot be deleted in 3scale unless the account that. Redirect to external login. Using this snippet in any page in the developer portal.
codehub.3scale.net
Openresty init.d script | 3scale Documentation
http://codehub.3scale.net/nginx/2014/08/18/OpenrestyInitDScript
Openresty init.d script. An init.d script to configure Openresty as a system service. This will allow calling the Nginx lifecycle commands using the 'service' command. E.g. service nginx start, service nginx stop, service nginx reload. Chkconfig: 2345 55 25. Description: Nginx init.d script, put in /etc/init.d, chmod x /etc/init.d/nginx. For Debian, run: update-rc.d -f nginx defaults. For CentOS, run: chkconfig - add nginx. Default-Start: 2 3 4 5. Default-Stop: 0 1 6. S reopen -c $CONF. S stop -c $CONF.
codehub.3scale.net
Use cache in case 3scale cannot be reached | 3scale Documentation
http://codehub.3scale.net/nginx/lua/caching/2014/08/20/UsePrebuiltCache
Use cache in case 3scale cannot be reached. In case the proxy is not able to reach the 3scale service management API, it will allow the traffic to go through to the API only for a selected group of applications defined in the whitelist by the app id key. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37. 3scale could not be reached. Fall back to fixed cache. DEBUG: TIMEOUT WHILE TRYING TO REACH 3SCALE. DEBUG: application in cache.
codehub.3scale.net
Makefile for working with a remote Nginx | 3scale Documentation
http://codehub.3scale.net/nginx/2014/08/19/MakefileForRemoteNginx
Makefile for working with a remote Nginx. Use make ( documentation. To control a remote Nginx. Includes some useful commands for editing and deploying Nginx configurations in a remote server. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58. Nginx dummycustomer.conf USER. Ec2-54-224-138-186.compute-1.amazonaws.com REMOTEDIR. Users/victordg/.ssh/aws/vdg-3scale.pem # #. O -name *.conf.
codehub.3scale.net
Caching snippets | 3scale Documentation
http://codehub.3scale.net/caching
Use cache in case 3scale cannot be reached. In case the proxy is not able to reach the.
codehub.3scale.net
Reporting snippets | 3scale Documentation
http://codehub.3scale.net/reporting
Extract Applications including keys in CSV format. Get a CSV extract of all applications including their keys. How to report a variable usage based on a header. VCL report error code. Keep a counter of the number of error with 400. Error 404 and report if app plan doesn't match. Check if the application plan of an incoming API request.
codehub.3scale.net
VCL report error code | 3scale Documentation
http://codehub.3scale.net/varnish/reporting/2014/08/20/%20VCLReportErrorCode
VCL report error code. Keep a counter of the number of error with 400 status code in a 3scale custom metric. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19. Cache the authorization from 3scale. CHANGEME: below the TTL of the response of 3scales backend. Here we can send a report call to 3scale to keep track. Of the number of error responses from the backend. Send post request threaded. Comments powered by Disqus.
codehub.3scale.net
Lua snippets | 3scale Documentation
http://codehub.3scale.net/lua
Customize error messages and codes after 3scale Authorization Failure. Add additional error codes and messages based on the 3scale. Add additional logging to the nginx error log to view. Basic Auth. Extracting AppId and AppKey from BASE64 encoded Authorization header. By replacing the lua call to the get auth params function with. How to report a variable usage based on a header. SOAP based API integration through NGinx. By default when you download NGinx Config files from the.
SOCIAL ENGAGEMENT