Update rb-site to generate configurations for different web servers.

Review Request #12845 — Created Feb. 25, 2023 and submitted

Information

Review Board
release-5.0.x

Reviewers

We used to generate configuration files for different Apache and
lighttpd server combinations, but over time we consolidated onto
Apache + mod_wsgi. This made sense at the time, but since then, the
world of Python web servers has changed.

We now generate a number of sample configurations for users:

  • Apache + mod_wsgi
  • Nginx + Gunicorn
  • Nginx + uWSGI

These all live in $sitedir/conf/webconfs/.

Each of these are documented, with commented-out options for common
configurations. For example, the Apache and Nginx configurations all
have details on enabling SSL, and the mod_wsgi section has a section on
daemon mode.

These are all auto-generated, so there's no need to select an option
when creating the site. The existing advanced option for the web server
is now deprecated and unused, and advanced mode no longer prompts about
the web server.

This change also fixes an annoying warning when failing to write the
global site list file (which in most cases is not useful), and adds a
blurb at the end about referring to the documentation for SELinux
instructions.

Generated site directories and tested each server combination, making
sure I could load Review Board.

Summary ID
Update rb-site to generate configurations for different web servers.
We used to generate configuration files for different Apache and lighttpd server combinations, but over time we consolidated onto Apache + mod_wsgi. This made sense at the time, but since then, the world of Python web servers has changed. We now generate a number of sample configurations for users: * Apache + mod_wsgi * Nginx + Gunicorn * Nginx + uWSGI These all live in `$sitedir/conf/webconfs/`. Each of these are documented, with commented-out options for common configurations. For example, the Apache and Nginx configurations all have details on enabling SSL, and the mod_wsgi section has a section on daemon mode. These are all auto-generated, so there's no need to select an option when creating the site. The existing advanced option for the web server is now deprecated and unused, and advanced mode no longer prompts about the web server. This change also fixes an annoying warning when failing to write the global site list file (which in most cases is not useful), and adds a blurb at the end about referring to the documentation for SELinux instructions.
73e3cdf54e30f7f4ac56da2e20fe6aa82392265e
chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-5.0.x (4fbaf08)
Loading...