[ prog / sol / mona ]

prog


How can I run my own instance of this

239 2020-05-29 00:41 *

And here's the fix anyway: forget about reverse proxying, use SCGI, and tell her to fuck all the way off.

In nginx.conf

server {
    server_name fossil.textboard.org;
    access_log  /var/log/nginx/fossil.textboard.org.access.log  main;
    error_log  /var/log/nginx/fossil.textboard.error.log  warn;
    location / {
        include scgi_params;
        scgi_pass 127.0.0.1:8080;
        scgi_param HTTPS "on"; 
        scgi_param SCRIPT_NAME "";
    }
    listen 443 ssl; # managed by Certbot
    ssl_certificate /usr/local/etc/letsencrypt/live/fossil.textboard.org/fullchain.pem; # managed by Certbot
    ssl_certificate_key /usr/local/etc/letsencrypt/live/fossil.textboard.org/privkey.pem; # managed by Certbot
    include /usr/local/etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /usr/local/etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
} 

server {
    if ($host = fossil.textboard.org) {
        return 301 https://$host$request_uri;
    } # managed by Certbot
    listen 80; 
    server_name fossil.textboard.org;
    return 404; # managed by Certbot
}

Then launch the fossil web server like this:

fossil server --https --scgi --repolist --port 8080 /path/to/your/directory/of/fossil/repositories &

Are you cloning a git repo?

git clone wholesomegitproject
cd wholesomegitproject
git fast-export --all | fossil import --git ../dull-and-boring.fossil
301


VIP:

do not edit these