Skip to content

Commit 23ef33b

Browse files
committed
add Rust implementation on README
refs: #292
1 parent d9bcd7a commit 23ef33b

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,6 @@ ISUCON過去問題の環境を「さくらのクラウド」で構築する |
221221

222222
## 他の言語実装
223223

224+
* Rust実装 https://github.com/Romira915/private-isu-rust
224225
* Python実装 https://github.com/methane/pixiv-isucon2016-python
225226
* Scala実装 https://github.com/catatsuy/private-isu/pull/140
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
server {
2+
listen 80;
3+
4+
client_max_body_size 10m;
5+
root /public/;
6+
7+
location / {
8+
proxy_set_header Host $host;
9+
proxy_pass http://app:8080;
10+
}
11+
}

webapp/etc/nginx/conf.d/php.conf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
server {
2+
listen 80;
3+
4+
client_max_body_size 10m;
5+
root /public;
6+
7+
location / {
8+
try_files $uri /index.php$is_args$args;
9+
}
10+
11+
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
12+
location ~ \.php {
13+
#fastcgi_split_path_info ^(.+\.php)(/.+)$;
14+
include fastcgi_params;
15+
fastcgi_param SCRIPT_FILENAME /var/www/html/$fastcgi_script_name;
16+
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
17+
fastcgi_index index.php;
18+
fastcgi_pass app:9000;
19+
}
20+
}

0 commit comments

Comments
 (0)