use defauölt traefik pw
This commit is contained in:
parent
a7a94fdd18
commit
afe83c4811
@ -394,3 +394,4 @@ https://t.me/dabobotcrypto
|
|||||||
- Emergency stop if balance falls below defined value
|
- Emergency stop if balance falls below defined value
|
||||||
- Analysis tool for collected historical values to try out buy or sell conditions based on them
|
- Analysis tool for collected historical values to try out buy or sell conditions based on them
|
||||||
- Consideration of trading and funding fees
|
- Consideration of trading and funding fees
|
||||||
|
- Liquidation Heatmap (https://www.coinglass.com/pro/futures/LiquidationHeatMap)
|
||||||
|
@ -29,25 +29,6 @@
|
|||||||
block: |
|
block: |
|
||||||
cd /home/docker/dabo.{{inventory_hostname}}
|
cd /home/docker/dabo.{{inventory_hostname}}
|
||||||
|
|
||||||
if [ -f env ]
|
|
||||||
then
|
|
||||||
. ./env
|
|
||||||
echo "${WEBPASSWDCRYPT}"
|
|
||||||
else
|
|
||||||
webpassword=$(pwgen -s 32 1)
|
|
||||||
webuser=bot
|
|
||||||
webpasswordcrypted=$(htpasswd -nb ${webuser} ${webpassword} | sed -e 's/\\$/\\$\\$/g')
|
|
||||||
|
|
||||||
echo "WEBUSER=${webuser}
|
|
||||||
WEBPASSWD='${webpassword}'
|
|
||||||
WEBPASSWDCRYPT='${webpasswordcrypted}'
|
|
||||||
" >env
|
|
||||||
|
|
||||||
chmod 440 env
|
|
||||||
chown root:docker env
|
|
||||||
echo "${webpasswordcrypted}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! [ -d home/.ssh ]
|
if ! [ -d home/.ssh ]
|
||||||
then
|
then
|
||||||
mkdir -p home/.ssh
|
mkdir -p home/.ssh
|
||||||
@ -84,10 +65,10 @@
|
|||||||
- Restart dabo
|
- Restart dabo
|
||||||
|
|
||||||
|
|
||||||
- name: Get crypted PW
|
#- name: Get crypted PW
|
||||||
shell: bash /home/docker/dabo.{{inventory_hostname}}/genpw.sh
|
# shell: bash /home/docker/dabo.{{inventory_hostname}}/genpw.sh
|
||||||
register: cryptpw
|
# register: cryptpw
|
||||||
changed_when: false
|
# changed_when: false
|
||||||
|
|
||||||
- name: /home/docker/dabo.{{inventory_hostname}}/docker-compose.override.yml Container Configuration
|
- name: /home/docker/dabo.{{inventory_hostname}}/docker-compose.override.yml Container Configuration
|
||||||
blockinfile:
|
blockinfile:
|
||||||
@ -118,8 +99,7 @@
|
|||||||
# cert via letsencrypt
|
# cert via letsencrypt
|
||||||
- traefik.http.routers.dabo.tls.certresolver=letsencrypt
|
- traefik.http.routers.dabo.tls.certresolver=letsencrypt
|
||||||
# activate secHeaders@file
|
# activate secHeaders@file
|
||||||
- traefik.http.routers.dabo.middlewares=secHeaders@file,dabo-basicauth
|
- traefik.http.routers.dabo.middlewares=secHeaders@file,default-basic-auth@file
|
||||||
- traefik.http.middlewares.dabo-basicauth.basicauth.users={{ cryptpw.stdout }}
|
|
||||||
# Traefik network
|
# Traefik network
|
||||||
- traefik.docker.network=traefik
|
- traefik.docker.network=traefik
|
||||||
networks:
|
networks:
|
||||||
|
Loading…
Reference in New Issue
Block a user