Commit Diff


commit - e306c3ff356fa524f020c9e57a53afbdf0d62ed7
commit + eb05f6ddbb8fd40780ef92f4e179aac8b9e587bb
blob - a2b32f9267be748758616261e325f5df82715dd3
blob + 1e9bc752438dea57b267617ea85db5c3371bdfb1
--- README.md
+++ README.md
@@ -1,3 +1,7 @@
 # httpd.rocks
 
-Work in progress...
+Setup an HTTPS-enabled web server with `httpd` on OpenBSD. Includes A+ security report configuration with `haproxy`.
+
+- Live project: [httpd.rocks](https://httpd.rocks)
+- Submit patches, additions [here](https://lists.sr.ht/~bt/httpd.rocks-devel)
+- [License](https://git.btxx.org/httpd.rocks/tree/LICENSE)
blob - /dev/null
blob + c443d33a981058d66e29362e78eb66bf7fce86ec (mode 644)
--- /dev/null
+++ LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 Bradley Taunt
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
blob - 691287b6e353f56675fffd37fe96ead589956f33
blob + 03937ff8337142f79318cd88c54b91ab5c02237b
--- _footer.html
+++ _footer.html
@@ -1,2 +1,7 @@
+<hr>
+<footer>
+    <p>Project created by <a href="https://btxx.org">Bradley Taunt</a><br>
+    <a href="https://git.btxx.org/httpd.rocks">Source code</a> | <a href="https://git.btxx.org/httpd.rocks/tree/LICENSE">MIT License</a></p>
+</footer>
 </body>
 </html>
\ No newline at end of file
blob - a57283d627820e6bdd9f9ec44d3208d95e73d0f9
blob + 74466ceacf714f0de103676907d16c04216bb17b
--- _header.html
+++ _header.html
@@ -3,6 +3,7 @@
 <head>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="color-scheme" content="light dark">
     <title>httpd.rocks - Setup an HTTPS-enabled webserver with httpd on OpenBSD</title>
     <link rel="stylesheet" href="./style.css">
 </head>
blob - 008613d87ed61d55f2b4dd28f8d712a6f96d4cfa
blob + 6cfede63e5b22057c7bc1d2b36c107761d16b2ff
--- index.html
+++ index.html
@@ -3,16 +3,16 @@
 <head>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="color-scheme" content="light dark">
     <title>httpd.rocks - Setup an HTTPS-enabled webserver with httpd on OpenBSD</title>
     <link rel="stylesheet" href="./style.css">
 </head>
 <body>
     <p><img src="openbsd-logo.svg" alt="OpenBSD mascot" /></p>
 <h1 id="httpd-rocks">httpd rocks</h1>
-<p>Setup an <a href="https://www.ssllabs.com/ssltest/analyze.html?d=httpd.rocks&amp;s=50.114.206.127">HTTPS-enabled web server</a> with <code>httpd</code> on <a href="https://openbsd.org">OpenBSD</a></p>
-<p>Includes <a href="https://securityheaders.com/?q=https%3A%2F%2Fhttpd.rocks%2F&amp;followRedirects=on">A+ security report</a> configuration with <code>haproxy</code>.</p>
+<p>Setup an <a href="https://www.ssllabs.com/ssltest/analyze.html?d=httpd.rocks&amp;s=50.114.206.127">HTTPS-enabled web server</a> with <code>httpd</code> on <a href="https://openbsd.org">OpenBSD</a>. Includes <a href="https://securityheaders.com/?q=https%3A%2F%2Fhttpd.rocks%2F&amp;followRedirects=on">A+ security report</a> configuration with <code>haproxy</code>.</p>
 <blockquote>
-<p>I&#8217;m far from an expert! Please <a href="https://git.btxx.org/httpd.rocks">help improve this project</a></p>
+<p>I&#8217;m far from an expert! Please <a href="https://git.btxx.org/httpd.rocks/about">help improve this project</a></p>
 </blockquote>
 <hr/>
 <h2 id="before-you-begin">Before You Begin&#8230;</h2>
@@ -170,7 +170,8 @@ doas rcctl enable haproxy
 doas rcctl start haproxy
 </code></pre>
 <h2 id="its-alive">It&#8217;s Alive!</h2>
-<p>Now check out your website! Everything should work as intended. You should have valid TLS, your standard HTTP request should forward to HTTPS, <code>www</code> requests should forward to <code>non-www</code>, and your security headers should <a href="https://securityheaders.com/?q=https%3A%2F%2Fhttpd.rocks%2F&amp;followRedirects=on">score an A+</a>.</p>
+<p>Now check out your website! </p>
+<p>Everything should work as intended. You should have valid TLS, your standard HTTP request should forward to HTTPS, <code>www</code> requests should forward to <code>non-www</code>, and your security headers should <a href="https://securityheaders.com/?q=https%3A%2F%2Fhttpd.rocks%2F&amp;followRedirects=on">score an A+</a>.</p>
 <p>That&#8217;s it!</p>
 <hr/>
 <h2 id="references">References</h2>
@@ -181,5 +182,10 @@ doas rcctl start haproxy
 <li><a href="https://romanzolotarev.com/openbsd/acme-client.html">Enable HTTPS with acme-client(1) and Let’s Encrypt on OpenBSD</a></li>
 <li><a href="https://citizen428.net/blog/self-hosting-static-site-openbsd-httpd-relayd/">Self-hosting a static site with OpenBSD, httpd, and relayd</a></li>
 </ul>
+<hr>
+<footer>
+    <p>Project created by <a href="https://btxx.org">Bradley Taunt</a><br>
+    <a href="https://git.btxx.org/httpd.rocks">Source code</a> | <a href="https://git.btxx.org/httpd.rocks/tree/LICENSE">MIT License</a></p>
+</footer>
 </body>
 </html>
\ No newline at end of file
blob - 6115e2b8d2eba2d181fee5a84bf46f67654f8a03
blob + c574d14ca6230639ea0fef51f505d009093c3ae8
--- index.md
+++ index.md
@@ -2,12 +2,10 @@
 
 # httpd rocks
 
-Setup an [HTTPS-enabled web server](https://www.ssllabs.com/ssltest/analyze.html?d=httpd.rocks&s=50.114.206.127) with `httpd` on [OpenBSD](https://openbsd.org)
+Setup an [HTTPS-enabled web server](https://www.ssllabs.com/ssltest/analyze.html?d=httpd.rocks&s=50.114.206.127) with `httpd` on [OpenBSD](https://openbsd.org). Includes [A+ security report](https://securityheaders.com/?q=https%3A%2F%2Fhttpd.rocks%2F&followRedirects=on) configuration with `haproxy`.
 
-Includes [A+ security report](https://securityheaders.com/?q=https%3A%2F%2Fhttpd.rocks%2F&followRedirects=on) configuration with `haproxy`.
+> I'm far from an expert! Please [help improve this project](https://git.btxx.org/httpd.rocks/about)
 
-> I'm far from an expert! Please [help improve this project](https://git.btxx.org/httpd.rocks)
-
 ---
 
 ## Before You Begin...
@@ -234,8 +232,10 @@ doas rcctl start haproxy
 
 ## It's Alive!
 
-Now check out your website! Everything should work as intended. You should have valid TLS, your standard HTTP request should forward to HTTPS, `www` requests should forward to `non-www`, and your security headers should [score an A+](https://securityheaders.com/?q=https%3A%2F%2Fhttpd.rocks%2F&followRedirects=on).
+Now check out your website! 
 
+Everything should work as intended. You should have valid TLS, your standard HTTP request should forward to HTTPS, `www` requests should forward to `non-www`, and your security headers should [score an A+](https://securityheaders.com/?q=https%3A%2F%2Fhttpd.rocks%2F&followRedirects=on).
+
 That's it!
 
 ---
blob - 6695cce0e3a8f38262b55914f2944e566243e17c
blob + 756e00167eb44bcb665a6aaa13b04d730892abdb
--- style.css
+++ style.css
@@ -4,7 +4,8 @@
 
 body {
     font-family: sans-serif;
-    font-size: 14px;
+    font-size: 16px;
+    line-height: 1.65;
     margin: 0 auto;
     max-width: 650px;
     padding: 10px;
@@ -36,9 +37,17 @@ blockquote {
     padding: 6px 10px;
 }
 blockquote p {
+    font-style: italic;
     margin: 0;
 }
 
+ul li, ol li {
+    margin: 1rem 0;
+}
+ul li > ul li, ol li > ol li {
+    margin: 5px 0;
+}
+
 pre {
     border: 1px solid;
     overflow: scroll;
@@ -46,9 +55,22 @@ pre {
     max-width:100%;
 }
 
+code {
+    font-size: 14px;
+}
+
+p code, li code {
+    border: 1px solid;
+    padding: 1px 2px;
+}
+
 hr {
     background: currentColor;
     border: 0;
     height: 1px;
     margin: 2rem 0;
+}
+
+footer p {
+    font-size: 90%;
 }
\ No newline at end of file