2019-05-14 18:01:39 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
set -eo pipefail
|
|
|
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
|
|
|
|
2020-02-09 22:41:39 -05:00
|
|
|
cmd-nginx-show-conf() {
|
2019-12-19 02:19:46 -05:00
|
|
|
declare desc="display app nginx config"
|
2020-02-10 01:40:30 -05:00
|
|
|
declare cmd="nginx:show-conf"
|
|
|
|
|
[[ "$1" == "$cmd" ]] && shift 1
|
2019-05-14 18:01:39 -04:00
|
|
|
declare APP="$1"
|
|
|
|
|
|
2020-02-10 01:40:30 -05:00
|
|
|
verify_app_name "$APP"
|
2019-05-14 18:01:39 -04:00
|
|
|
if [[ ! -f "$DOKKU_ROOT/$APP/nginx.conf" ]]; then
|
|
|
|
|
dokku_log_fail "No nginx.conf exists for $APP"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cat "$DOKKU_ROOT/$APP/nginx.conf"
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-09 22:41:39 -05:00
|
|
|
cmd-nginx-show-conf "$@"
|