Skip to content

Commit 7449ad3

Browse files
committed
add ssl instruction
1 parent 576bde7 commit 7449ad3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,16 @@ ADD ./files /
5858
RUN \
5959
# generate fake ssl for server conf, allow for replacing it later
6060
bash /root/bin/placeholder-ssl.sh \
61+
&& mkdir -p /app-start/etc \
6162

6263
# redirect /etc/nginx
63-
&& mv /etc/nginx /app-start/etc/nginx \
64+
&& mv /etc/nginx /app-start/etc/nginx \
6465
&& rm -rf /etc/nginx \
6566
&& ln -s /app/etc/nginx /etc/nginx \
6667

6768
# redirect logs
6869
&& mkdir -p /app-start/var/log \
69-
&& mv /var/log/nginx /app-start/var/log/nginx \
70+
&& mv /var/log/nginx /app-start/var/log/nginx \
7071
&& rm -rf /var/log/nginx \
7172
&& ln -s /app/var/log/nginx /var/log/nginx
7273

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Features:
88
- [x] /healthcheck endpoint
99
- [x] empty gif on other errors: 403, 404, 415, 500, 502, 503, 504
1010
- [x] convert/force output to another format, support formats: bmp, jpg, png, gif, webp
11+
- [x] use custom ssl and saved config when you mount '/app' volume. nginx logs has also been redirect so you can backup, such as aws s3 sync. Just delete the default redirect to stdout/access.log and stderr/error.log files.
1112

1213
# What does this solve?
1314
You have a huge repository of images that need dynamic resize and cropping. Cloudinary can be expensive and redundant if you run your own CDN in front of this microservice.
@@ -16,7 +17,7 @@ You have a huge repository of images that need dynamic resize and cropping. Clo
1617
Unlike other libraries, this does not try to do every image transformation and/or caching.
1718

1819
1. For more advanced features such as: animated gif, face detection, auto image optimization, and others; we recommend using Cloudinary or similar service.
19-
2. There is no plan for SSL or other Caching methods. We recommend putting a CDN in front, such as (MaxCDN/StackPath/KeyCDN), to provide caching and easy SSL. We love StackPath/MaxCDN EdgeRules™.
20+
2. Outside of disk cache, there is no plan for other Caching methods. We recommend putting a CDN in front, such as (MaxCDN/StackPath/KeyCDN), to provide caching and easy SSL. We love StackPath/MaxCDN EdgeRules™.
2021
3. If you want thumbnail caching to s3, just write a lambda function and use this server to generate your thumbnail. Upload the result to s3 with the same function.
2122

2223
# build

0 commit comments

Comments
 (0)