File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 44# Github [ https://github.com/Erreur32/nginx-proxy-manager-Bash-API ]
55# Erreur32 July 2024
66
7- VERSION=" 2.5.4 "
7+ VERSION=" 2.5.5 "
88
99#
1010# This script allows you to manage Nginx Proxy Manager via the API. It provides
@@ -392,9 +392,13 @@ colorize_booleanh() {
392392# ###############################
393393# Generate a new API token
394394generate_token () {
395- response=$( curl -s -X POST " $BASE_URL$API_ENDPOINT " \
395+ response=$( curl -s -X POST " $BASE_URL$API_ENDPOINT ?expiry= $TOKEN_EXPIRY " \
396396 -H " Content-Type: application/json; charset=UTF-8" \
397397 --data-raw " {\" identity\" :\" $API_USER \" ,\" secret\" :\" $API_PASS \" }" )
398+
399+ # response=$(curl -s -X POST "$BASE_URL$API_ENDPOINT" \
400+ # -H "Content-Type: application/json; charset=UTF-8" \
401+ # --data-raw "{\"identity\":\"$API_USER\",\"secret\":\"$API_PASS\"}")
398402 # --data-raw "{\"identity\":\"$API_USER\",\"secret\":\"$API_PASS\",\"expiry\":\"$TOKEN_EXPIRY\"}")
399403
400404 token=$( echo " $response " | jq -r ' .token' )
You can’t perform that action at this time.
0 commit comments