Setting up Nginx with fossil is also not too much of a problem.

Essentially, nginx has to be redirected to the /repos path to be able to work with fossil server command correctly.

The configuration for nginx on the default port (port 80) serving fossil which is running on 127.0.0.1:3939

If the fossil server is started with this command –

fossil server --nojail --repolist --localhost\
 --port 3939 --scgi <home directory>/REPOs > /dev/null

then the nginx configuration should be –

server {
  listen 80;
  listen [::]:80;

  server_name <SERVER URL FOR FOSSIL>;

  client_max_body_size  5m;

  location / {
    include      scgi_params;
    scgi_pass    127.0.0.1:3939;
    scgi_param   SCRIPT_NAME "/repos";
  }
}