Skip to content

Commit f4d51c9

Browse files
committed
initial commit
0 parents  commit f4d51c9

32 files changed

+3492
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM nginx
2+
3+
RUN mkdir /etc/nginx/logs && touch /etc/nginx/logs/static.log
4+
5+
ADD ./nginx.conf /etc/nginx/conf.d/default.conf
6+
ADD /src /www

nginx.conf

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
server {
2+
root /www;
3+
4+
location / {
5+
autoindex on;
6+
}
7+
8+
# these settings are from https://github.com/h5bp/server-configs-nginx/blob/master/h5bp/location/expires.conf
9+
# feel free to change as much as you like
10+
# cache.appcache, your document html and data
11+
location ~* \.(?:manifest|appcache|html?|xml|json)$ {
12+
expires -1;
13+
access_log logs/static.log;
14+
}
15+
16+
# Feed
17+
location ~* \.(?:rss|atom)$ {
18+
expires 1h;
19+
add_header Cache-Control "public";
20+
}
21+
22+
# Media: images, icons, video, audio, HTC
23+
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
24+
expires 1M;
25+
access_log off;
26+
add_header Cache-Control "public";
27+
}
28+
29+
# CSS and Javascript
30+
location ~* \.(?:css|js)$ {
31+
expires 1y;
32+
access_log off;
33+
add_header Cache-Control "public";
34+
}
35+
}

src/.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
indent_size = 4
8+
indent_style = space
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

src/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

src/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Include your project-specific ignores in this file
2+
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files

0 commit comments

Comments
 (0)