From 30cad432bfaee440ca1652ef9f0007ec659380e2 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 4 Oct 2018 00:30:50 +0200 Subject: [PATCH] Add an Nginx server landing page to the router product Signed-off-by: David Oberhollenzer --- layer/router-base/INIT | 2 +- layer/router-base/ROOTFS | 1 + layer/router-base/nginx.conf | 25 +++++++++++++++++++++++++ layer/router-base/wwwroot/index.html | 23 +++++++++++++++++++++++ 4 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 layer/router-base/nginx.conf create mode 100644 layer/router-base/wwwroot/index.html diff --git a/layer/router-base/INIT b/layer/router-base/INIT index 7593e98..27b4384 100644 --- a/layer/router-base/INIT +++ b/layer/router-base/INIT @@ -1 +1 @@ -SERVICES="$SERVICES unbound dnsmasq sshd_keygen sshd" +SERVICES="$SERVICES unbound dnsmasq sshd_keygen sshd nginx" diff --git a/layer/router-base/ROOTFS b/layer/router-base/ROOTFS index 8da1280..ed0b124 100644 --- a/layer/router-base/ROOTFS +++ b/layer/router-base/ROOTFS @@ -2,3 +2,4 @@ unbound dnsmasq openssh tcpdump +nginx diff --git a/layer/router-base/nginx.conf b/layer/router-base/nginx.conf new file mode 100644 index 0000000..3efd0de --- /dev/null +++ b/layer/router-base/nginx.conf @@ -0,0 +1,25 @@ +worker_processes 1; + +events { + worker_connections 1024; +} + +error_log syslog:server=unix:/dev/log,nohostname,facility=daemon,severity=error,tag=nginx; + +http { + include mime.types; + default_type application/octet-stream; + sendfile on; + keepalive_timeout 65; + + server { + listen 80; + server_name _; + access_log syslog:server=unix:/dev/log,nohostname,facility=daemon,severity=info,tag=nginx; + + location / { + root /srv/www/; + index index.html; + } + } +} diff --git a/layer/router-base/wwwroot/index.html b/layer/router-base/wwwroot/index.html new file mode 100644 index 0000000..c720525 --- /dev/null +++ b/layer/router-base/wwwroot/index.html @@ -0,0 +1,23 @@ + + + +Welcome to the Pygos demo network! + + + +

Welcome to the Pygos demo network!

+

This page is served by the Nginx server on a Pygos based router and can + only be accessed from the internal network interfaces.

+ +

A lot more work has to be done to turn this into a more usefull landing + page or a web interface for configuring the router.

+ +

Thank you for trying out Pygos.

+ +