This commit is contained in:
2020-03-20 11:11:00 +01:00
parent bcb5f9fb4d
commit 0f51200fbf
5 changed files with 64 additions and 17 deletions

View File

@ -0,0 +1,7 @@
#!/bin/bash -x
TRAEFIK="http://traefik.docker.localhost"
DOMAIN="docker.localhost"
SERVICES=$(curl ${TRAEFIK}/api/http/routers |jq ".[].rule" |grep "${DOMAIN}" |awk -F\` '{print $2}')
SELECTION=$(echo -e "$SERVICES" | uniq -u | rofi -dmenu -p "Select traefik service: " -theme ~/.config/rofi/themes/app-launcher)
[ ! -z "$SELECTION" ] && xdg-open "http://${SELECTION}"