mkaczanowski / pastebin

Simple, fast, standalone pastebin service
MIT License
155 stars 27 forks source link

Burn by default #28

Open ronhanson opened 3 years ago

ronhanson commented 3 years ago

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

mkaczanowski commented 3 years ago

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

GAS85 commented 1 year ago

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;
    }
}