From 9d76d4a3b185903adfb6c81d51070258ea79cf44 Mon Sep 17 00:00:00 2001 From: Camil Blanaru Date: Sun, 11 Sep 2016 19:57:48 +0200 Subject: [PATCH] Update examples to allow dashboard access. --- Dockerfile | 1 - conf.d/default-ssl.conf | 4 +++- conf.d/default.conf | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a732989..c6dd9b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,7 +51,6 @@ RUN addgroup -g 1000 www-data && adduser -D -G www-data -s /bin/false -u 1000 w RUN git clone https://github.com/camilb/VeryNginx.git \ && cd ./VeryNginx && git checkout tags/v0.3.3.1 \ - && rm -f $NGINX_PREFIX/conf/nginx.conf \ && cp ./nginx.conf $NGINX_PREFIX/conf/nginx.conf \ && cp -r ./verynginx /opt/verynginx \ diff --git a/conf.d/default-ssl.conf b/conf.d/default-ssl.conf index 5879bd7..1bdc89b 100644 --- a/conf.d/default-ssl.conf +++ b/conf.d/default-ssl.conf @@ -7,13 +7,15 @@ server { server { listen 443 default ssl http2; + #allow acces to Dashboard from this host + include /opt/verynginx/verynginx/nginx_conf/in_server_block.conf; server_name www.domain.tld; access_log /var/log/nginx/default-ssl.access.log; error_log /var/log/nginx/default-ssl.error.log; ssl_certificate /etc/nginx/ssl/your-cert.crt; ssl_certificate_key /etc/nginx/ssl/your-key.key; - + ssl_dhparam /etc/nginx/ssl/dhparam.pem; root html; diff --git a/conf.d/default.conf b/conf.d/default.conf index 9e09bd0..e173213 100644 --- a/conf.d/default.conf +++ b/conf.d/default.conf @@ -1,6 +1,7 @@ server { listen 80; + include /opt/verynginx/verynginx/nginx_conf/in_server_block.conf; server_name localhost; root html;