1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-25 20:30:43 +01:00

Add an Nginx server landing page to the router product

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-10-04 00:30:50 +02:00
parent dcadff7637
commit 30cad432bf
4 changed files with 50 additions and 1 deletions

View file

@ -1 +1 @@
SERVICES="$SERVICES unbound dnsmasq sshd_keygen sshd" SERVICES="$SERVICES unbound dnsmasq sshd_keygen sshd nginx"

View file

@ -2,3 +2,4 @@ unbound
dnsmasq dnsmasq
openssh openssh
tcpdump tcpdump
nginx

View file

@ -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;
}
}
}

View file

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>Welcome to the Pygos demo network!</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>Welcome to the Pygos demo network!</h1>
<p>This page is served by the Nginx server on a Pygos based router and can
only be accessed from the internal network interfaces.</p>
<p>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.</p>
<p><em>Thank you for trying out Pygos.</em></p>
</body>
</html>