Skip to content

Commit

Permalink
Update examples to allow dashboard access.
Browse files Browse the repository at this point in the history
  • Loading branch information
camilb committed Sep 11, 2016
1 parent 4af37a1 commit 9d76d4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
4 changes: 3 additions & 1 deletion conf.d/default-ssl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions conf.d/default.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
server {

listen 80;
include /opt/verynginx/verynginx/nginx_conf/in_server_block.conf;
server_name localhost;

root html;
Expand Down

0 comments on commit 9d76d4a

Please sign in to comment.