Update web_server.py
This commit is contained in:
parent
f3d1e8695d
commit
97161856e7
1 changed files with 4 additions and 0 deletions
|
|
@ -2628,6 +2628,10 @@ def auth_spotify():
|
||||||
is_remote = host not in ['127.0.0.1', 'localhost']
|
is_remote = host not in ['127.0.0.1', 'localhost']
|
||||||
is_docker = os.path.exists('/.dockerenv')
|
is_docker = os.path.exists('/.dockerenv')
|
||||||
|
|
||||||
|
# If in Docker and accessing via 127.0.0.1, recommend localhost
|
||||||
|
if is_docker and host == '127.0.0.1':
|
||||||
|
host = 'localhost'
|
||||||
|
|
||||||
if is_remote or is_docker:
|
if is_remote or is_docker:
|
||||||
# Show instructions for remote/docker access
|
# Show instructions for remote/docker access
|
||||||
page_title = "🔐 Spotify Authentication (Remote/Docker)"
|
page_title = "🔐 Spotify Authentication (Remote/Docker)"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue