Skip to content

Commit 090be4f

Browse files
committed
tests in progress
1 parent 2be84cf commit 090be4f

File tree

6 files changed

+51
-0
lines changed

6 files changed

+51
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/playground
2+
13
# babel dist
24
/lib
35

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Build Status](https://travis-ci.org/kaelzhang/docker-nginx.svg?branch=master)](https://travis-ci.org/kaelzhang/docker-nginx)
2+
13
# kaelz/nginx
24

35
The altered nginx docker image from the official one, which includes [headers-more-nginx-module](https://github.com/openresty/headers-more-nginx-module)

package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"private": true,
3+
"name": "kaelz/nginx",
4+
"scripts": {
5+
"build": "docker build -t kaelz/nginx:alpine",
6+
"test": ,
7+
"test-no-cov": "ava --verbose --timeout=10s"
8+
},
9+
"devDependencies": {
10+
"ava": "^0.16.0"
11+
}
12+
}

test/fixtures/conf.d/default.conf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
server {
2+
listen 80;
3+
server_name localhost;
4+
5+
location / {
6+
more_clear_headers 'Etag';
7+
root /usr/share/nginx/html;
8+
index index.html index.htm;
9+
}
10+
}

test/fixtures/nginx.conf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
user nginx;
2+
worker_processes 1;
3+
4+
error_log /var/log/nginx/error.log warn;
5+
pid /var/run/nginx.pid;
6+
7+
8+
events {
9+
worker_connections 1024;
10+
}
11+
12+
13+
http {
14+
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
15+
'$status $body_bytes_sent "$http_referer" '
16+
'"$http_user_agent" "$http_x_forwarded_for"';
17+
18+
access_log /var/log/nginx/access.log main;
19+
20+
sendfile on;
21+
keepalive_timeout 65;
22+
23+
include /etc/nginx/conf.d/*.conf;
24+
}

test/mainline/alpine/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
const test = require('ava')

0 commit comments

Comments
 (0)