Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
generate URL for nginx secure_link
@Thomanphan

This comment has been minimized.

Copy link

commented Mar 27, 2017

Can you share nginx config

@mohammadhosin

This comment has been minimized.

Copy link

commented Jun 5, 2017

	location /securetest {
		   alias html/mhmsecure/securetest;
            secure_link $arg_md5,$arg_expires;
            secure_link_md5 "$secure_link_expires$uri$remote_addr live21.ir";

            if ($secure_link = "") { return 403; }
            if ($secure_link = "0") { return 410; }
        
		}
@nicolasvahidzein

This comment has been minimized.

Copy link

commented Sep 10, 2018

You Sir are amazing, thank you for sharing this. I NEVER would have been able to figure this secure link thing alone, you saved me big time. Thank you thank you thank you!!!!

@tahir7us

This comment has been minimized.

Copy link

commented Aug 6, 2019

Thank you so much, you are the time-saver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.