Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpk committed Aug 11, 2012
1 parent 9e5d675 commit 5accf10
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
Example
-------

curl -H "Authorization: Basic geoloqi:api" "http://timezone-api.geoloqi.com/timezone?latitude=45.5118&longitude=-122.6433"
curl -u geoloqi:api "http://timezone-api.geoloqi.com/timezone?latitude=45.5118&longitude=-122.6433"

or, if you don't like query string parameters:

curl -u geoloqi:api http://timezone-api.geoloqi.com/timezone/45.5118/-122.6433

Nginx Config
------------
Expand All @@ -11,7 +15,8 @@ Nginx Config
listen 80;
access_log /var/log/nginx/timezone.log main;
error_log /var/log/nginx/timezone.log notice;
root /web/TimezoneDB;

root /web/Timezone-API;

location / {
try_files $uri /index.php?$query_string;
Expand Down

0 comments on commit 5accf10

Please sign in to comment.