Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenID Connect error thrown when disabled #10

Closed
Ssmidge opened this issue Feb 11, 2023 · 4 comments
Closed

OpenID Connect error thrown when disabled #10

Ssmidge opened this issue Feb 11, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Ssmidge
Copy link
Contributor

Ssmidge commented Feb 11, 2023

An error gets thrown when I try to load the main page, it happens when "oidc" is commented out in the headscale configuration file.

Docker-compose:

version: '3.5'
services:
headscale:
image: headscale/headscale:latest
container_name: headscale
volumes:
- ./config:/etc/headscale
- ./data/data:/var/lib/headscale
ports:
- 8080:8080
command: headscale serve
restart: unless-stopped
headscale-webui:
image: ghcr.io/ifargle/headscale-webui:latest
container_name: headscale-webui
depends_on:
- headscale
ports:
- 5000:5000
environment:
- TZ=America/Toronto
- HS_SERVER=[REDACTED]
- BASE_PATH="/admin"
- KEY="[REDACTED]"
volumes:
- ./volume:/data
- ./config/:/etc/headscale/

Log:

headscale-webui | 2023-02-10 21:24:24,628 - server - ERROR - Exception on /admin/ [GET]
headscale-webui | Traceback (most recent call last):
headscale-webui | File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 2525, in wsgi_app
headscale-webui | response = self.full_dispatch_request()
headscale-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
headscale-webui | File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1822, in full_dispatch_request
headscale-webui | rv = self.handle_user_exception(e)
headscale-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
headscale-webui | File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1820, in full_dispatch_request
headscale-webui | rv = self.dispatch_request()
headscale-webui | ^^^^^^^^^^^^^^^^^^^^^^^
headscale-webui | File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1796, in dispatch_request
headscale-webui | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
headscale-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
headscale-webui | File "/app/server.py", line 39, in overview_page
headscale-webui | render_page = renderer.render_overview(),
headscale-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^
headscale-webui | File "/app/renderer.py", line 106, in render_overview
headscale-webui | if config_yaml["oidc"]:

@iFargle
Copy link
Owner

iFargle commented Feb 11, 2023

Should be good now. v0.2.4 / latest. Please test and let me know!
Edit: Build pushed :)

@iFargle iFargle self-assigned this Feb 11, 2023
@iFargle iFargle added the bug Something isn't working label Feb 11, 2023
@Ssmidge
Copy link
Contributor Author

Ssmidge commented Feb 11, 2023

It seems to work now but the page is missing CSS.
image

@Ssmidge
Copy link
Contributor Author

Ssmidge commented Feb 11, 2023

It seems like the issue is that the assets are being loaded from /admin/X instead of /X.

@Ssmidge
Copy link
Contributor Author

Ssmidge commented Feb 11, 2023

I have resolved this issue by changing my proxy configuration, it seems like I had to change the base path of headscale-webui to "/" and proxy /admin to / (My headscale server is running on the root domain.)

@Ssmidge Ssmidge closed this as completed Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants