S
S
speedvm2022-04-07 10:52:18
Java
speedvm, 2022-04-07 10:52:18

Why can I only access QuAck via localhost?

Good day everyone!
There is a QuAck project , which expands into three lines:

git clone https://github.com/greatbit/quack.git
cd quack
docker-compose up

What I use:
Debian 11 Bullseye
Docker version 20.10.14, build a224086
docker-compose version 1.29.2, build 01110ad01

The essence of the problem. If I open localhost
in a browser , I can log in with the test credentials root/rootpass. If I open http://IP-address_of_network_interface/ in a browser , then during authorization I get an error Couldn't get projects: Unexpected token U in JSON at position 0 . The same error appears if I try to deploy quack in a virtual machine and try to open http://virtualmachine_ip_address in a browser .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
speedvm, 2022-04-07
@speedvm

In QuAck "domain authorization" works. If the domain does not match the domain in the settings, we get an error.
In our case, the /etc/quack/quack.properties file contains the line auth.domain=localhost , i.e. authorization will only work if the domain is localhost. Changing localhost to an IP address solved the problem. Subsequently, the call to QuAck will be by domain name, which means that instead of the IP address, you will need to substitute the domain by which the server will be contacted.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question