Merge pull request #3373 from yixingjia/updatenginx

Update nginx images OSS to latest
This commit is contained in:
yixingjia 2017-10-17 22:13:11 -07:00 committed by GitHub
commit 95743f9a81
4 changed files with 8 additions and 6 deletions

View File

@ -1,9 +1,11 @@
FROM library/photon:1.0 FROM vmware/photon:1.0
RUN tdnf install -y nginx \ RUN tdnf distro-sync -y \
&& tdnf install -y nginx \
&& ln -sf /dev/stdout /var/log/nginx/access.log \ && ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log \ && ln -sf /dev/stderr /var/log/nginx/error.log \
&& mkdir -p /var/run && mkdir -p /var/run \
&& tdnf clean all
EXPOSE 80 EXPOSE 80
STOPSIGNAL SIGQUIT STOPSIGNAL SIGQUIT

View File

@ -30,7 +30,7 @@ http {
server { server {
listen 80; listen 80;
server_tokens off;
# disable any limits to avoid HTTP 413 for large image uploads # disable any limits to avoid HTTP 413 for large image uploads
client_max_body_size 0; client_max_body_size 0;

View File

@ -33,7 +33,7 @@ http {
server { server {
listen 443 ssl; listen 443 ssl;
# server_name harbordomain.com; # server_name harbordomain.com;
server_tokens off;
# SSL # SSL
ssl_certificate $ssl_cert; ssl_certificate $ssl_cert;
ssl_certificate_key $ssl_cert_key; ssl_certificate_key $ssl_cert_key;

View File

@ -1,6 +1,6 @@
server { server {
listen 4443 ssl; listen 4443 ssl;
server_tokens off;
# ssl # ssl
ssl_certificate $ssl_cert; ssl_certificate $ssl_cert;
ssl_certificate_key $ssl_cert_key; ssl_certificate_key $ssl_cert_key;