DescriptionHi All, I used the basic docker compose file for the integrated method. I added the config.yaml to my folder. I commented out all OIDC section as I only what to test locally on my docker server. After both containers started I created an api key and used it to login on the web-ui (http://192.168.30.45:3000/admin). I always get an error that the api key is not valid. Do I need to provide the api key also in the config file or in the compose.yaml? Thank you for your support.
Headplane Versionv0.5.10 Headscale Versionv.0.25.1 |
Replies: 6 comments
|
Did you set |
|
@tale yes, it is set to false. Here is my config.yaml
|
|
You shouldn't need to, are you running it behind a reverse proxy or anything, and are you sure you are pasting the API key without any extra spaces or any incorrect characters? |
|
No, I am not using any reverse proxy. I am just using the the docker server ip to get to the admin panel: http://192.168.30.45:3000/admin The api is generated on the docker server cli using: This is what the key looks like: If I check the keys with: Do I need to adjust the basic config.yaml for headscale with an special setting? Thanks for your help! |
|
I got the api key to work. I had to change my listen_addr in the headscale config.yaml: from: to: I got access to the web-ui using http://192.168.30.45:3000/admin/ Now I am only missing the DNS and Settings Tab in the web-ui. What I also saw in the ui is, that my user is marked as: Unmanaged and not as Owner. Is that maybe the reason. I only have one user at the moment. Is there a way to change the user role? |
|
Unmanaged means it isn't done via OIDC. Headplane can't really do much with users if you're signing in with API keys. I can definitely figure out better user management in the future, but it isn't really on my roadmap right now since the "ideal path" for Headplane is to use OIDC for both Headscale and Headplane, making sure to use the same OIDC client. |
I got the api key to work. I had to change my listen_addr in the headscale config.yaml:
from:
listen_addr: 127.0.0.1:8080
to:
listen_addr: 0.0.0.0:8080
I got access to the web-ui using http://192.168.30.45:3000/admin/
Now I am only missing the DNS and Settings Tab in the web-ui.
What I also saw in the ui is, that my user is marked as: Unmanaged and not as Owner. Is that maybe the reason. I only have one user at the moment. Is there a way to change the user role?