diff options
author | Roland Reichwein <mail@reichwein.it> | 2021-02-11 14:21:24 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2021-02-11 14:21:24 +0100 |
commit | f4b6b3b7bb2be6ec8aa6b694d9ff39a774f01da7 (patch) | |
tree | c357981c6a5dac668b084c1fd1af0e8b3e3d9137 /debian | |
parent | a22c8c9c430505bdf951e3fd5ebb31485db729a0 (diff) |
Fix default config file to deliver default web page
Diffstat (limited to 'debian')
-rw-r--r-- | debian/README.Debian | 34 | ||||
-rw-r--r-- | debian/example/banner256.png | bin | 0 -> 5647 bytes | |||
-rw-r--r-- | debian/example/favicon.ico | bin | 0 -> 2238 bytes | |||
-rw-r--r-- | debian/example/index.html | 22 | ||||
-rw-r--r-- | debian/example/reichwein.css | 51 | ||||
-rw-r--r-- | debian/webserver.conf | 24 | ||||
-rw-r--r-- | debian/webserver.dirs | 1 | ||||
-rw-r--r-- | debian/webserver.install | 1 |
8 files changed, 120 insertions, 13 deletions
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 Binary files differnew file mode 100644 index 0000000..89efb4f --- /dev/null +++ b/debian/example/banner256.png diff --git a/debian/example/favicon.ico b/debian/example/favicon.ico Binary files differnew file mode 100644 index 0000000..e8cbddb --- /dev/null +++ b/debian/example/favicon.ico 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 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"/> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="keywords" content="Reichwein, webserver"> + <title>Webserver</title> + <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/> + <link rel="stylesheet" type="text/css" href="reichwein.css"/> + </head> + <body> + <div class="page"> + <h1><img class="banner" src="banner256.png" alt="Reichwein.IT"/> Webserver</h1> + + <div> + It works! + </div> + + </div> + </body> +</html> + 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 @@ <plugin-directory>/usr/lib/webserver/plugins</plugin-directory> <sites> <site> - <name>antcom.de</name> - <host>lists.antcom.de</host> - <host>antcom.de</host> - <host>www.antcom.de</host> + <name>localhost</name> + <host>localhost</host> <path requested="/"> <plugin>static-files</plugin> - <target>/home/ernie/homepage/test</target> + <target>/usr/lib/webserver/example</target> </path> <path requested="/webbox"> - <plugin>static-files</plugin> - <target>/home/ernie/code/webserver/plugins/webbox/html</target> - </path> - <path requested="/webbox/bin"> <plugin>webbox</plugin> - <target>/home/ernie/testbox</target> + <target>/var/lib/webserver/webbox</target> <WEBBOX_NAME>Testbox1</WEBBOX_NAME> - <WEBBOX_READONLY>1</WEBBOX_READONLY> + <WEBBOX_READONLY>0</WEBBOX_READONLY> </path> - <certpath>/home/ernie/code/webserver/fullchain.pem</certpath> - <keypath>/home/ernie/code/webserver/privkey.pem</keypath> + <!-- + <certpath>/etc/letsencrypt/live/my-site/fullchain.pem</certpath> + <keypath>/etc/letsencrypt/live/my-site/privkey.pem</keypath> + --> </site> </sites> <sockets> @@ -38,6 +34,7 @@ <port>80</port> <protocol>http</protocol> </socket> + <!-- <socket> <address>127.0.0.1</address> <port>443</port> @@ -48,6 +45,7 @@ <port>443</port> <protocol>https</protocol> </socket> + --> </sockets> </webserver> 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 |