mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-03 01:18:48 +08:00
proxy
This commit is contained in:
parent
34cd152897
commit
dbae71c66a
@ -8,4 +8,5 @@ COPY ./config/initproxy.conf /data/nginx/proxy_host/
|
||||
COPY ./s6/init_user /etc/s6-overlay/s6-rc.d/init_user
|
||||
RUN ls /etc/s6-overlay/s6-rc.d/init_user
|
||||
RUN touch /etc/s6-overlay/s6-rc.d/user/contents.d/init_user
|
||||
|
||||
RUN chmod -R 755 /etc/s6-overlay/s6-rc.d/init_user
|
@ -1,5 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Start to change nginxproxymanage users" >> /tmp/userlog
|
||||
|
||||
sleep 60
|
||||
|
||||
username="help@websoft9.com"
|
||||
password=$(openssl rand -base64 16 | tr -d '/+' | cut -c1-16)
|
||||
token=""
|
||||
@ -13,8 +17,6 @@ fi
|
||||
echo "create diretory"
|
||||
mkdir -p "$(dirname "$cred_path")"
|
||||
|
||||
echo "Start to change nginxproxymanage users" >> /tmp/userlog
|
||||
|
||||
while [ -z "$token" ]; do
|
||||
sleep 5
|
||||
login_data=$(curl -X POST -H "Content-Type: application/json" -d '{"identity":"admin@example.com","scope":"user", "secret":"changeme"}' http://localhost:81/api/tokens)
|
||||
|
Loading…
Reference in New Issue
Block a user