Skip to content
This repository was archived by the owner on May 8, 2018. It is now read-only.

Commit 652b0a4

Browse files
author
Ruben Schmidmeister
committed
Merge branch 'optimizations'
2 parents 5a5ad01 + ba9ba99 commit 652b0a4

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

containers/ttio-dev-proxy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM library/nginx:alpine
1+
FROM docker.ttio.cloud:5000/library/nginx
22

33
COPY ./nginx/conf.d/* /etc/nginx/conf.d/
44
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf

containers/ttio-dev-proxy/nginx/nginx.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,12 @@ http {
3030
gzip_static on;
3131
gzip_comp_level 9;
3232
gzip_min_length 500;
33-
gzip_types text/plain text/xml text/css application/javascript image/svg+xml image/png;
33+
gzip_types text/plain text/xml text/css application/javascript image/svg+xml image/png application/json;
3434
gzip_vary on;
3535
gzip_http_version 1.1;
3636

37+
brotli on;
38+
brotli_types text/plain text/xml text/css application/javascript image/svg+xml image/png application/json;
39+
3740
include /etc/nginx/conf.d/*.conf;
3841
}

containers/ttio-proxy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM library/nginx:alpine
1+
FROM docker.ttio.cloud:5000/library/nginx
22

33
ARG VERSION
44

containers/ttio-proxy/config/nginx/nginx.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
user nginx;
2-
worker_processes 1;
2+
worker_processes auto;
33

44
error_log /dev/stderr warn;
55
pid /var/run/nginx.pid;
@@ -31,6 +31,9 @@ http {
3131
gzip_vary on;
3232
gzip_http_version 1.1;
3333

34+
brotli on;
35+
brotli_types text/plain text/xml text/css application/javascript image/svg+xml image/png application/json;
36+
3437
server_tokens off;
3538

3639
include /etc/nginx/conf.d/*.conf;

scripts/build-containers.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ if [ -z "$(echo ${IMAGES} | grep "docker.ttio.cloud:5000/library/fpm")" ]; then
2323
docker pull docker.ttio.cloud:5000/library/fpm
2424
fi
2525

26+
if [ -z "$(echo ${IMAGES} | grep "docker.ttio.cloud:5000/library/nginx")" ]; then
27+
docker pull docker.ttio.cloud:5000/library/nginx
28+
fi
29+
2630
fold_end "Dependencies"
2731

2832
fold_start "Worker"

0 commit comments

Comments
 (0)