From 0691bcbd11897694a604f99fa58af6b4286c7195 Mon Sep 17 00:00:00 2001
From: Laurent Bercot
Date: Tue, 29 Aug 2023 16:30:15 +0000
Subject: More examples, some fixes, some more doc
Signed-off-by: Laurent Bercot
---
doc/quickstart.html | 38 +++++++++++++--
etc/tipidee.conf | 61 -----------------------
examples/s6-rc/httpd-6-log/run | 2 +-
examples/s6/httpd-4/log/notification-fd | 1 +
examples/s6/httpd-4/log/run | 5 ++
examples/s6/httpd-4/notification-fd | 1 +
examples/s6/httpd-4/run | 10 ++++
examples/s6/httpd-6/log/notification-fd | 1 +
examples/s6/httpd-6/log/run | 5 ++
examples/s6/httpd-6/notification-fd | 1 +
examples/s6/httpd-6/run | 10 ++++
examples/s6/httpsd-4/log/notification-fd | 1 +
examples/s6/httpsd-4/log/run | 5 ++
examples/s6/httpsd-4/notification-fd | 1 +
examples/s6/httpsd-4/run | 11 +++++
examples/s6/httpsd-6/log/notification-fd | 1 +
examples/s6/httpsd-6/log/run | 5 ++
examples/s6/httpsd-6/notification-fd | 1 +
examples/s6/httpsd-6/run | 11 +++++
examples/tipidee.conf | 84 +++++++++++++++++++++++---------
src/config/lexparse.c | 4 +-
src/config/tipidee-config-internal.h | 2 -
src/config/tipidee-config-preprocess.c | 4 +-
src/config/tipidee-config.c | 7 +--
src/tipideed/tipideed.c | 6 ++-
25 files changed, 178 insertions(+), 100 deletions(-)
delete mode 100644 etc/tipidee.conf
create mode 100644 examples/s6/httpd-4/log/notification-fd
create mode 100755 examples/s6/httpd-4/log/run
create mode 100644 examples/s6/httpd-4/notification-fd
create mode 100755 examples/s6/httpd-4/run
create mode 100644 examples/s6/httpd-6/log/notification-fd
create mode 100755 examples/s6/httpd-6/log/run
create mode 100644 examples/s6/httpd-6/notification-fd
create mode 100755 examples/s6/httpd-6/run
create mode 100644 examples/s6/httpsd-4/log/notification-fd
create mode 100755 examples/s6/httpsd-4/log/run
create mode 100644 examples/s6/httpsd-4/notification-fd
create mode 100755 examples/s6/httpsd-4/run
create mode 100644 examples/s6/httpsd-6/log/notification-fd
create mode 100755 examples/s6/httpsd-6/log/run
create mode 100644 examples/s6/httpsd-6/notification-fd
create mode 100755 examples/s6/httpsd-6/run
diff --git a/doc/quickstart.html b/doc/quickstart.html
index 4b369eb..974c4b5 100644
--- a/doc/quickstart.html
+++ b/doc/quickstart.html
@@ -25,16 +25,16 @@
s6-networking installed
alongside tipidee.
Prepare your document root for every virtual domain you aim to serve.
-For instance, if your documents are in /home/www and you need to
+For instance, if your documents are in /home/www/docs and you need to
serve the example.com and example.org domains, create
-/home/www/example.com and /home/www/example.org directories,
+/home/www/docs/example.com and /home/www/docs/example.org directories,
they will be the document roots for the example.com and example.org
virtual sites respectively.
Symlink these canonical directories to all the host:port combinations
you want them to be available on. If you want example.com and
example.org to be both available on ports 80 and 443, then symlink
example.com to example.com:80 and example.com:443
-in the /home/www directory, and do the same with example.org.
+in the /home/www/docs directory, and do the same with example.org.
Compile a default configuration for tipidee:
:> /etc/tipidee.conf && tipidee-config.
@@ -103,5 +103,37 @@ your service manager scripts.
containing service files to run tipidee under various service managers.
+
+
Frequently asked questions
+
+
+ I want my web server to listen to more than one address. Do I need
+to do all that for every address I have?
+
+
+ Not necessarily: you could listen to 0.0.0.0 for IPv4, and
+:: for IPv6. But if you don't want your server to listen to
+all the addresses on your machine, then yes, you will have
+to run one process per address:port tuple.
+
+
+
+ It's okay though: every listening process is very small. The skarnet.org
+server has two network cards and runs a web server on both of them, on
+IPv4 and IPv6, over HTTP and HTTPS, which makes 8 services. Plus one
+s6-log logger process
+for each of these services. Plus a supervisor for every service and every
+logger — for a whooping total of 64 long-running processes just for
+its web server functionality; and it's still not even noticeable, the
+amount of resources it consumes is negligible. So, don't worry about it.
+
+
+
+ Note that this allows you to run different instances of
+tipideed with different configurations, if
+you need it. Use the -f option to specify a different config
+file for tipideed.
+
+