This file contains 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
#!/bin/sh | |
# export AWS_ACCESS_KEY_ID=<AWS_KEY> | |
# export AWS_SECRET_ACCESS_KEY=<AWS_SECRET_KEY> | |
# export AWS_DEFAULT_REGION=us-east-1 | |
# (ex) sh dev_stg_connect.sh egs-dev stg-auth | |
cluster=$1 | |
SRV=$2 |
This file contains 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
local image_path = ngx.var.image_path | |
local images_dir = "/home/koheyhey/localdata/" -- where images come from | |
local function return_not_found(msg) | |
ngx.status = ngx.HTTP_NOT_FOUND | |
ngx.header["Content-type"] = "text/html" | |
ngx.say(msg or "not found") | |
ngx.exit(0) | |
end |