Skip to content

Commit

Permalink
01
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Feb 2, 2016
0 parents commit 6db3ea9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions 01/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
worker_processes 1;
daemon off;
error_log /dev/stdout info;

events {}

http {
access_log /dev/stdout;
server {
listen 3000;

location /sum {
mruby_set_code $sum '
result = 0
for i in 0..Nginx::Var.new.arg_n.to_i do
result += i
end
result
';
return 200 $sum;
}
}
}

0 comments on commit 6db3ea9

Please sign in to comment.