Dashboard login: redirect to invalid port
I tried to setup a dashboard instance for demonstration purposes by pulling the latest deployment bundle (last try just now; commit 5a0ce32d)
The preferred web protocol is https but it turned out that the host needs to be accessible by a global domain and must be exposed to the wan (which is not intended yet).
So I changed the config to http and re-initialized steering (since some data needs to be re-generated in order to succeessfully start steering #250 (closed)). After fixing an unexpected docker permission error (which is not covered by make aura-web.permissions-update
so created #251 (closed)), aura-web seemed to run successfully.
I noticed that the dashboard loginpage is now accessible via http on port 80, but after entering the credentials and hitting "Sign in", I'm redirected to port 8080, which is not running:
http://aura.local:8080/oidc_callback.html#access_token=...
I reviewed my config but @eigenwijsje confirmed it's ok (and basically the default). Flushing the databases and deleting the docker volumes had also no impact.
Recursively searching for '8080' in the config dir resulted in the follwing output:
➜ config git:(main) grep -r 8080 .
./aura-web/sample.env:# Leaving this empty should be ok for production; use http://localhost:8080 for dev
./aura-web/docker-compose.steering.yml: - "127.0.0.1:8080:8080"
./aura-web/docker-compose.yml: - "0.0.0.0:80:8080"
./aura-web/.env:# Leaving this empty should be ok for production; use http://localhost:8080 for dev
./aura-web/docker-compose.dev.yml: - "127.0.0.1:8080:8080"
./aura-web/docker-compose.dev.yml: test: ["CMD", "nc", "-z", "-w", "3", "localhost", "8080"]
./services/sample-config/tank-cut-glue.yaml: port: 8080
./services/nginx/run.sh: certbot --nginx --domains ${AURA_HOST} --email ${CERTBOT_EMAIL} --agree-tos --redirect --reinstall --non-interactive --http-01-port=8080
./services/nginx/run.sh: certbot renew --non-interactive --http-01-port=8080
./services/nginx/nginx.prod.template: listen 8080;
To verify there's no local change I ran:
➜ config git:(main) git status
On branch main
Your branch is up to date with 'origin/main'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
../.cache/
../.local/
nothing added to commit but untracked files present (use "git add" to track)
Update: Removing the .cache and .local dirs didn't fix it.
@eigenwijsje I'll assign this ticket to you since we already talked about it.