Skip to content

Commit

Permalink
Merge pull request #10 from flant/nginx-add-user-bug-fixes
Browse files Browse the repository at this point in the history
Fix nginx-user option bugs
  • Loading branch information
nabokihms authored Nov 19, 2019
2 parents 3c6b15b + 2d0eeb2 commit a81c5b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run-proxy
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Arguments:
--listen [ADDRESS:]PORT sets the address and port on which the server will accept requests
--proxy-pass URL sets the url to proxy to
--user USER sets the name of the authorized user
--nginx-user sets the user to run nginx
--nginx-user USER sets the user to run nginx
--location URI sets the uri for the location (default: /metrics)
--proxy-ssl-ca-file PATH specify path to CA file in PEM format used to verify peer certificate,
implies "proxy_ssl_verify on;"
Expand All @@ -23,7 +23,7 @@ Arguments:
EOF
)

if ! temp=$(getopt -o h --long "listen:,proxy-pass:,user:,location:,help,proxy-ssl-ca-file:,
if ! temp=$(getopt -o h --long "listen:,proxy-pass:,user:,nginx-user:,location:,help,proxy-ssl-ca-file:,
proxy-ssl-cert-file:,proxy-ssl-key-file:,proxy-ssl-name:,probe-proxy-pass:,probe-listen:,debug" -n 'run-proxy' -- "$@") ; then
>&2 echo
>&2 echo "$HELP_STRING"
Expand Down

0 comments on commit a81c5b5

Please sign in to comment.