pastebin icon indicating copy to clipboard operation
pastebin copied to clipboard

Burn by default

Open ronhanson opened this issue 3 years ago • 2 comments

Hi, Would it be possible to add a command line option to set "burn" mode by default? Thanks!

ronhanson avatar Jun 29 '21 11:06 ronhanson

yes, it should be trivial todo. PRs are most welcome

mkaczanowski avatar Aug 04 '21 17:08 mkaczanowski

I believe this could be done on nginx site, as per Stackoverflow. "burn" is controlled by burn=0, so something like this should help:

location = / {
    if ($args = "") {
        set $args burn=1;
        # or rewrite / /?arg1=val1 last;
    }
    if ($args !~ "burn=1") {
        set $args $args&burn=1;
    }
}

GAS85 avatar Feb 27 '23 13:02 GAS85