pondersource / nextcloud-mfa-awareness

Make Nextcloud aware of whether the current user is logged in with Multi-Factor Authentication
MIT License
0 stars 2 forks source link

Nextcloud GUI not visible from browser #15

Closed michielbdejong closed 1 year ago

michielbdejong commented 1 year ago

This affects @navid-dada's dev setup. I'll try to reproduce the problem.

shokri-navid commented 1 year ago

you can just run the gss docker-compose. I noticed that the tester container has some HTTP/HTTPS/NO proxy in its env after it, I unset those proxies and check the apache2/access.log in the Nextcloud master node.

michielbdejong commented 1 year ago

OK, I'm testing this in main. Since the docker-compose.yml doesn't use a testnet, we need to browse to the container IPs. To find these, run:

docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' nextcloud

For instance:

export NEXTCLOUD=`docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' nextcloud`
curl http://$NEXTCLOUD
<!DOCTYPE html>
<html>
<head>
        <script> window.location.href="index.php"; </script>
        <meta http-equiv="refresh" content="0; URL=index.php">
</head>
</html>
michielbdejong commented 1 year ago

I do notice it has the port as "8080:80", that should probably be "80:80"?

michielbdejong commented 1 year ago

I did notice that the Firefox tester doesn't work when not using a testnet, apparently.

michielbdejong commented 1 year ago

I added a testnet in the php-version-8 branch and I can now see sunet-nc1 both on: http://mesh.pondersource.org:8081/index.php http://mesh.pondersource.org:5800 -> http://sunet-nc1/index.php

@navid-dada can you confirm if this is fixed for you in the php-version-8 branch?