Update nginx_proxy_manager_cli.sh

This commit is contained in:
Erreur32 2024-07-10 14:47:24 +02:00 committed by GitHub
parent 7ba5442f48
commit 89986f4464
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,24 +40,28 @@
############################################################################### ###############################################################################
#### Variables to edit ######## Variables to edit ##########
# Address IP server Nginx (your nginx ip server) # Address IP server Nginx (your nginx ip server)
NGINX_IP="192.168.1.1" NGINX_IP="192.168.1.1"
# File storage token
TOKEN_FILE="token.txt"
# Token creation (user pass) with valid user on npm. # Token creation (user pass) with valid user on npm.
API_USER="your@email.com" API_USER="your@email.com"
API_PASS="password" API_PASS="password"
################################# # Colors
COLOR_TRUE="\e[42;1mtrue\e[0m" # Vert clair pour true
COLOR_FALSE="\e[93mfalse\e[0m" # Rouge pour false
############################
# Don't need to touch bellow
############################
# Definition variables TOKEN # Definition variables TOKEN
BASE_URL="http://$NGINX_IP:81/api" BASE_URL="http://$NGINX_IP:81/api"
API_ENDPOINT="/tokens" API_ENDPOINT="/tokens"
EXPIRY_FILE="expiry.txt" EXPIRY_FILE="expiry.txt"
# File storage token
TOKEN_FILE="token.txt"
# Couleurs pour l'affichage
COLOR_TRUE="\e[42;1mtrue\e[0m" # Vert clair pour true
COLOR_FALSE="\e[93mfalse\e[0m" # Rouge pour false
# Fonction pour générer le token # Fonction pour générer le token
generate_token() { generate_token() {