-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from UKHomeOffice/i
Minor improvements
- Loading branch information
Showing
3 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM alpine:3.4 | ||
|
||
RUN apk upgrade --no-cache | ||
RUN apk add --no-cache nginx bash | ||
RUN apk upgrade --no-cache && apk add --no-cache nginx bash | ||
|
||
ADD bin/run.sh /run.sh | ||
COPY bin/run.sh /run.sh | ||
COPY conf.d /etc/nginx/conf.d | ||
|
||
ENTRYPOINT ["/run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
log_format extended_json '{' | ||
'"proxy_proto_address": "$proxy_protocol_addr", ' | ||
'"remote_addr": "$remote_addr", ' | ||
'"http_host": "$host", ' | ||
'"remote_user": "$remote_user", ' | ||
'"timestamp": "$time_iso8601", ' | ||
'"request_uri": "$request_uri", ' | ||
'"request_method": "$request_method", ' | ||
'"http_status": "$status", ' | ||
'"body_bytes_sent": "$body_bytes_sent", ' | ||
'"http_referer": "$http_referer", ' | ||
'"http_user_agent": "$http_user_agent", ' | ||
'"http_x_forwarded_for": "$http_x_forwarded_for", ' | ||
'"request_time": "$request_time", ' | ||
'"upstream_response_time": "$upstream_response_time", ' | ||
'"upstream_addr": "$upstream_addr", ' | ||
'"upstream_status": "$upstream_status", ' | ||
'"scheme": "$scheme", ' | ||
'"gzip_ratio": "$gzip_ratio", ' | ||
'}'; |