I've managed to do that with another variable inside my configuration file. # if token is invalid nginx set $secure_link as empty string if ($secure_link = "") { set $is_allowed 'forbidden'; } # if expiration time is gone nginx set $secure_link as 0 if ($secure_link = "0") { set $is_allowed 'gone'; }by rkoszalka - How to...
Hi everyone, I need to set a new secured location in my nginx. For that I'm using http_secure_link_module. If the URL contains the correct token I proceed to return the page to the user, and also add a "Set-Cookie" header status=is_authorized. If the token is incorrect I return and 403 status code to the user. Until here everything is working fine. The thing is: I need this secuby rkoszalka - How to...
![]() |
![]() |
![]() |
![]() |
|