You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+52-28
Original file line number
Diff line number
Diff line change
@@ -8,41 +8,58 @@ This is a sample app showing how to run a [3Scale](http://3Scale.com) API Proxy
8
8
Usage
9
9
---------
10
10
11
-
First:
12
-
Get a free [3Scale](http://3Scale.com) account and a free [Heroku.com](http://Heroku.com) account if you don't already have them.
11
+
#### Step 1: Get 3Scale and Heroku Accounts ####
12
+
Get a free [3Scale](http://3Scale.com) account. (When prompted, I suggest letting 3Scale generate a sample application and account for you.)
13
+
Get a free [Heroku.com](http://Heroku.com) account. [Download the Heroku toolbelt](https://toolbelt.heroku.com/)
13
14
14
-
Follow [3Scale's instructions](https://support.3scale.net/howtos/api-configuration/nginx-proxy) on setting up an Nginx proxy. Once you've configured your sandbox proxy, you can download two Nginx config files as a zip file.
15
-
You'll skip 3scale's instructions for deploying on AWS. We'll be deploying on Heroku
15
+
#### Step 2: Configure 3Scale Api Proxy and download Nginx config files####
16
+
Follow [3Scale's instructions](https://support.3scale.net/howtos/api-configuration/nginx-proxy) on setting up an Nginx proxy. Once you've configured your sandbox proxy, download the Nginx config files. (Skip 3scale's instructions for deploying on AWS since we'll be deploying on Heroku)
16
17
17
-
18
-
Example usage
19
-
----------------------
18
+
#### Step 3: Clone this repo ####
20
19
21
20
#Clone this repo, or your own fork of it (use your repo's URL obviously)
http://heroku-app-name.herokuapp.com deployed to Heroku
75
+
http://<heroku-app-name>.herokuapp.com deployed to Heroku
59
76
60
77
61
78
Test your API proxy using an app_id and app_key you get from your 3scale control panel. More info about these credentials [here](https://support.3scale.net/howtos/api-configuration/nginx-proxy)
If something goes wrong when nginx starts up, just run `heroku logs`
87
+
You should see something like:
88
+
89
+
2013-05-04T09:30:04.199607+00:00 heroku[web.1]: Starting process with command `start_nginx.sh`
90
+
2013-05-04T09:30:10.112438+00:00 heroku[web.1]: State changed from starting to up
65
91
66
92
67
93
Motivations
68
94
-----------
69
-
I wanted a free way to host 3Scale's Nginx API proxy. They have a hosted proxy,
70
-
but it's only for sandbox/testing use. Nginx is very efficient, so you won't need
71
-
to deploy another Heroku dyno unless you're pushing insane API traffic.
72
-
That keeps this within the free usage tier on Heroku.
73
-
74
-
3Scale's AWS instructions are great, but it's even more appealing to me to run Nginx on Heroku because
75
-
+ It's free
76
-
+ More stuff is managed for me
77
-
+ It's on AWS under the hood anyway
78
-
+ My Nginx config files are guaranteed to be revisioned
95
+
I wanted a free way to host 3Scale's Nginx API proxy. They have a hosted proxy, but it's only for sandbox/testing use. Nginx is very efficient, so you won't need to deploy another Heroku dyno unless you're pushing insane API traffic. That keeps this within the free usage tier on Heroku.
96
+
97
+
3Scale's AWS instructions are great, but it's even more appealing to me to run Nginx on Heroku because
98
+
99
+
+ It's free
100
+
+ More stuff is managed for me
101
+
+ It's on AWS under the hood anyway
102
+
+ My Nginx config files are guaranteed to be revisioned in Git
0 commit comments