Skip to content

Commit 4b0ccd8

Browse files
committed
Fix Token expires
1 parent 3d98c7f commit 4b0ccd8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

nginx_proxy_manager_cli.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ display_info() {
325325
if [ -f "$TOKEN_FILE" ]; then
326326
echo -e " ${COLOR_GREEN}Token NPM ${COLOR_YELLOW} $TOKEN_FILE ${COLOR_RESET}"
327327
else
328-
echo -e " ${COLOR_RED}Token file does not exist! ${COLOR_RESET} \n 🔖 Check ./nginx_proxy_manager_cli.sh --check-token "
329-
echo -e " Generating new token..."
328+
#echo -e " ${COLOR_RED}Token file does not exist! ${COLOR_RESET}"
329+
echo -e " ${COLOR_GREEN} Generating new token... ${COLOR_RESET} \n 🔖 Check ./nginx_proxy_manager_cli.sh --check-token "
330330
generate_token
331331

332332
fi
@@ -394,7 +394,8 @@ colorize_booleanh() {
394394
generate_token() {
395395
response=$(curl -s -X POST "$BASE_URL$API_ENDPOINT" \
396396
-H "Content-Type: application/json; charset=UTF-8" \
397-
--data-raw "{\"identity\":\"$API_USER\",\"secret\":\"$API_PASS\",\"expiry\":\"$TOKEN_EXPIRY\"}")
397+
--data-raw "{\"identity\":\"$API_USER\",\"secret\":\"$API_PASS\"}")
398+
#--data-raw "{\"identity\":\"$API_USER\",\"secret\":\"$API_PASS\",\"expiry\":\"$TOKEN_EXPIRY\"}")
398399

399400
token=$(echo "$response" | jq -r '.token')
400401
expires=$(echo "$response" | jq -r '.expires')

0 commit comments

Comments
 (0)