Wordpress and Discourse in a single droplet

AI-generated summary

The discussion focuses on running Wordpress and Discourse on a single 2gb droplet using Apache as a reverse proxy. pfaffman notes that this setup offers a significant performance advantage over using two 1gb droplets and simplifies Wordpress permalink configuration via .htaccess. However, the main drawback identified is the complexity of setting up Let’s Encrypt SSL certificates. Falco suggests switching to Caddy Server instead, citing its simplified SSL handling and available examples for both Discourse and Wordpress. pfaffman appreciates this advice, viewing the initial setup time as a worthwhile investment for scaling installations. Consequently, Falco encourages the creation of a new How-to guide for using Caddy, aiming to reduce configuration errors for the broader community.

Continuing the discussion from New Offering: Install Discourse and WordPress in one Droplet:

In the above offering, I do a standard Cloud Install, move Discourse to another port, and install Apache to serve Wordpress and configure it as a reverse proxy. It’s pretty much the same as this howto except it’s Apache rather than Nginx (and doesn’t do SSL, yet). I went with Apache because it makes it easier to configure Wordpress permalinks via a .httpaccess file.

From a performance perspective doing this in a single 2 gb droplet seems like a big win over 2 1gb droplets. It doesn’t seem like it should complicate upgrades with either Wordpress or Discourse.

The big downside (right now, at least) is that configuring Let’s Encrypt is more complicated (read, I haven’t bothered to figure that out yet). Is there something else that I’m missing?

Not sure how much time you have in your hands, one thing I would try is using https://caddyserver.com/ instead of apache, to ease SSL setup.

There are even examples for Discourse and Wordpress.

Thanks, @Falco! That could be just the ticket. Foolish though I may be, I work as if I’m going to install hundreds of these things, so spending a few hours now to save 10 seconds per install will totally be worth it. :slight_smile:

And if it works well, a new howto topic about using Caddy instead of Nginx would be very welcome. Whatever leaves less space for errors when configuring the reverse proxy will help a lot of people.