Skip to content

Commit ba62ece

Browse files
authored
Merge pull request #2 from orleika/devel
Update v1.2
2 parents ef47041 + d71d74a commit ba62ece

File tree

8 files changed

+23
-6
lines changed

8 files changed

+23
-6
lines changed

β€Ž.dockerignoreβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.git
2+
conf.d

β€ŽDockerfileβ€Ž

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.4
1+
FROM alpine:latest
22

33
MAINTAINER orleika <orleika.net@gmail.com>
44

@@ -94,9 +94,7 @@ RUN addgroup -S nginx \
9494
&& rm -rf /tmp/* /root/.gnupg
9595

9696
COPY nginx.conf /etc/nginx/nginx.conf
97-
COPY headers_params /etc/nginx/conf.d/headers_params
98-
COPY proxy_params /etc/nginx/conf.d/proxy_params
99-
COPY ssl_params /etc/nginx/conf.d/ssl_params
97+
COPY log_format /etc/nginx/conf.d/log_format
10098
COPY default.conf /etc/nginx/sites-enabled/default.conf
10199

102100
EXPOSE 80 443

β€ŽREADME.mdβ€Ž

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,37 @@
44
[![Build Status](https://img.shields.io/travis/orleika/docker-nginx/master.svg?style=flat-square)](https://travis-ci.org/orleika/docker-nginx)
55
[![nginx](http://img.shields.io/badge/nginx-v1.11.9-blue.svg?style=flat-square)](https://nginx.org/en/download.html)
66
[![LibreSSL](http://img.shields.io/badge/LibreSSL-v2.5.1-blue.svg?style=flat-square)](https://www.libressl.org/)
7+
[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
78

89
> nginx docker image
910
11+
Small-Secure-Fast nginx docker image.
12+
Base image is alpine, which is a security-oriented, lightweight Linux distribution. Most response headers are concealed, and DDoS mitigation is equipped. You should use secure headers included in `conf.d` for further safety considerations. Additionally, nginx caching parameters are optimized.
13+
This image is automatically released by Docker Cloud.
14+
1015
## Table of Contents
1116

17+
- [Install](#install)
1218
- [Usage](#usage)
19+
- [Contribute](#contribute)
1320
- [License](#license)
1421

15-
## Usage
22+
## Install
1623

1724
```sh
1825
$ docker pull orleika/nginx
26+
```
27+
28+
## Usage
29+
30+
```sh
1931
$ docker run -d -p 80:80 orleika/nginx
2032
```
2133

34+
## Contribute
35+
36+
PRs accepted.
37+
2238
## License
2339

24-
This project is licensed under the MIT License - see the LICENSE file for details
40+
MIT Β© orleika
File renamed without changes.
File renamed without changes.

β€Žlog_formatβ€Ž

Whitespace-only changes.

β€Žnginx.confβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ http {
2222
include /etc/nginx/mime.types;
2323
default_type application/octet-stream;
2424

25+
include /etc/nginx/conf.d/log_format;
2526
access_log /var/log/nginx/access.log combined;
2627
error_log /var/log/nginx/error.log crit;
2728

0 commit comments

Comments
Β (0)