-
-
Save staticfilestorage/bed2692be89d9ab0a0216d7f865fdc8f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| location /get/ | |
| { | |
| set $hostx ""; | |
| set $addrs ""; | |
| if ( $uri ~ "^/get/http./+([^/]+)/(.+)$") { | |
| set $hostx $1; | |
| set $addrs $2; | |
| } | |
| resolver 127.0.0.1; | |
| proxy_pass http://$hostx/$addrs; | |
| proxy_set_header referer "http://$hostx"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment