From f4b6b3b7bb2be6ec8aa6b694d9ff39a774f01da7 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Thu, 11 Feb 2021 14:21:24 +0100 Subject: Fix default config file to deliver default web page --- debian/README.Debian | 34 +++++++++++++++++++++++++++++ debian/example/banner256.png | Bin 0 -> 5647 bytes debian/example/favicon.ico | Bin 0 -> 2238 bytes debian/example/index.html | 22 +++++++++++++++++++ debian/example/reichwein.css | 51 +++++++++++++++++++++++++++++++++++++++++++ debian/webserver.conf | 24 ++++++++++---------- debian/webserver.dirs | 1 + debian/webserver.install | 1 + 8 files changed, 120 insertions(+), 13 deletions(-) create mode 100644 debian/example/banner256.png create mode 100644 debian/example/favicon.ico create mode 100644 debian/example/index.html create mode 100644 debian/example/reichwein.css (limited to 'debian') diff --git a/debian/README.Debian b/debian/README.Debian index 35011f3..6150bff 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -4,6 +4,40 @@ webserver for Debian This package is the Debian version of webserver. +Setup and Configuration +----------------------- + +The default configuration in Debian contains an example configuration file in +/etc/webserver.conf and serves an example html page from +/usr/lib/webserver/example and an example webbox from +/var/lib/webserver/webbox. You need to replace the latter for a writable +location to get a writable webbox). + +For initial startup, do the following: + +* Edit /etc/webserver.conf + +* Enable in Debian: + + # systemctl enable webserver.service + +* Start: + + # systemctl start webserver + +For debugging purposes, do the following: + +* Query Status: + + # systemctl status webserver + + or observe /var/log/syslog + +To finally disable the service if you don't need it anymore: + + # systemctl disable webserver.service + + Contact ------- diff --git a/debian/example/banner256.png b/debian/example/banner256.png new file mode 100644 index 0000000..89efb4f Binary files /dev/null and b/debian/example/banner256.png differ diff --git a/debian/example/favicon.ico b/debian/example/favicon.ico new file mode 100644 index 0000000..e8cbddb Binary files /dev/null and b/debian/example/favicon.ico differ diff --git a/debian/example/index.html b/debian/example/index.html new file mode 100644 index 0000000..758e8b8 --- /dev/null +++ b/debian/example/index.html @@ -0,0 +1,22 @@ + + + + + + + Webserver + + + + +
+

Webserver

+ +
+ It works! +
+ +
+ + + diff --git a/debian/example/reichwein.css b/debian/example/reichwein.css new file mode 100644 index 0000000..f682af1 --- /dev/null +++ b/debian/example/reichwein.css @@ -0,0 +1,51 @@ +body { + font-family: "sans-serif"; + font-weight: 300; +} + +figcaption { + text-align: center; + font-size: 8px; + color: #808080; +} + +figure { + display: inline-block; +} + +.mobile { + width: 300px; + border-width: 80px 15px 80px 15px; + border-style: solid; + border-radius: 30px; + border-color: #000000; +} + +.logo { + display: block; + margin: 0 auto; +} + +.screenshot { + width: 400px; + border: 2px solid; + border-color: #8888AA; +} + +img.banner { + vertical-align: -5px; +} + +@media only screen and (min-width: 1px) and (max-width: 630px) { +} + +@media only screen and (min-width: 631px) and (max-width: 950px) { +} + +@media only screen and (min-width: 951px) { + div.page { + max-width: 950px; + width: 100%; + margin: 0 auto; + } +} diff --git a/debian/webserver.conf b/debian/webserver.conf index 55e7246..f40e793 100644 --- a/debian/webserver.conf +++ b/debian/webserver.conf @@ -5,26 +5,22 @@ /usr/lib/webserver/plugins - antcom.de - lists.antcom.de - antcom.de - www.antcom.de + localhost + localhost static-files - /home/ernie/homepage/test + /usr/lib/webserver/example - static-files - /home/ernie/code/webserver/plugins/webbox/html - - webbox - /home/ernie/testbox + /var/lib/webserver/webbox Testbox1 - 1 + 0 - /home/ernie/code/webserver/fullchain.pem - /home/ernie/code/webserver/privkey.pem + @@ -38,6 +34,7 @@ 80 http + diff --git a/debian/webserver.dirs b/debian/webserver.dirs index 23315d6..404114b 100644 --- a/debian/webserver.dirs +++ b/debian/webserver.dirs @@ -1 +1,2 @@ var/lib/webserver +var/lib/webserver/webbox diff --git a/debian/webserver.install b/debian/webserver.install index b4997f3..32137ae 100644 --- a/debian/webserver.install +++ b/debian/webserver.install @@ -1 +1,2 @@ debian/webserver.conf etc +debian/example usr/lib/webserver -- cgit v1.2.3