diff options
author | Bradley Taunt <bt@btxx.org> | 2024-10-28 12:26:50 -0400 |
---|---|---|
committer | Bradley Taunt <bt@btxx.org> | 2024-10-28 12:26:50 -0400 |
commit | d2efde9326a134adf0f9d2576428e7dcde130f34 (patch) | |
tree | 48afc2dfa712e405d41d629ee6716a89917f5bf2 | |
parent | aa7d8a6d0f4cddce58851107357713425aedbe2e (diff) |
-rw-r--r-- | index.html | 8 | ||||
-rw-r--r-- | index.md | 15 |
2 files changed, 23 insertions, 0 deletions
@@ -175,6 +175,14 @@ doas rcctl start haproxy <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&followRedirects=on">score an A+</a>.</p> <p>That’s it!</p> +<h2 id="extras">Extras</h2> +<p>With your website now live, you may want to avoid overloading your server when you share it with the world! You can opt to use any CDN of your choosing or edit your <code>pf.conf</code> with sane defaults:</p> +<pre><code>pass in on any proto tcp from any to any port {80 443} keep state \ + (max-src-conn 10, max-src-conn-rate 5/30, max-src-nodes 200) +</code></pre> +<p>Then reload your configuration:</p> +<pre><code>doas pfctl -f /etc/pf.conf +</code></pre> <hr/> <h2 id="references">References</h2> <p>I am far from an OpenBSD expert. Please refer to these additional (and mostly better) resources and documentation:</p> @@ -240,6 +240,21 @@ Everything should work as intended. You should have valid TLS, your standard HTT That's it! +## Extras + +With your website now live, you may want to avoid overloading your server when you share it with the world! You can opt to use any CDN of your choosing or edit your `pf.conf` with sane defaults: + +``` +pass in on any proto tcp from any to any port {80 443} keep state \ + (max-src-conn 10, max-src-conn-rate 5/30, max-src-nodes 200) +``` + +Then reload your configuration: + +``` +doas pfctl -f /etc/pf.conf +``` + --- ## References |