commit eb05f6ddbb8fd40780ef92f4e179aac8b9e587bb from: Bradley Taunt date: Mon Oct 28 12:06:49 2024 UTC Initial README cleanup, CSS changes 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 @@ +
+ \ No newline at end of file blob - a57283d627820e6bdd9f9ec44d3208d95e73d0f9 blob + 74466ceacf714f0de103676907d16c04216bb17b --- _header.html +++ _header.html @@ -3,6 +3,7 @@ + httpd.rocks - Setup an HTTPS-enabled webserver with httpd on OpenBSD blob - 008613d87ed61d55f2b4dd28f8d712a6f96d4cfa blob + 6cfede63e5b22057c7bc1d2b36c107761d16b2ff --- index.html +++ index.html @@ -3,16 +3,16 @@ + httpd.rocks - Setup an HTTPS-enabled webserver with httpd on OpenBSD

OpenBSD mascot

httpd rocks

-

Setup an HTTPS-enabled web server with httpd on OpenBSD

-

Includes A+ security report configuration with haproxy.

+

Setup an HTTPS-enabled web server with httpd on OpenBSD. Includes A+ security report configuration with haproxy.

-

I’m far from an expert! Please help improve this project

+

I’m far from an expert! Please help improve this project


Before You Begin…

@@ -170,7 +170,8 @@ doas rcctl enable haproxy 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+.

+

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+.

That’s it!


References

@@ -181,5 +182,10 @@ doas rcctl start haproxy
  • Enable HTTPS with acme-client(1) and Let’s Encrypt on OpenBSD
  • Self-hosting a static site with OpenBSD, httpd, and relayd
  • +
    + \ 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