Open lm93129 opened 10 months ago
This is great! The only caveat I will say is that "/web" is not the default endpoint within the svelte application itself. It should be built with the env var ENDPOINT=/web
due to the fact that ${ENDPOINT}
is used as the application's base URL for redirects and things like that. The corresponding docker container would have to be built with --build-arg ENDPOINT=/web
as far as I can tell.
Also, I would love to add ACL support. That was ultimately the goal and the reason that I created this project in the first place. Unfortunately, the ACL's have no exposure over the API so I have to make a choice:
1) Make this application not static so the server side of the application can read and interact with the HuJSON ACL config file. 2) Keep this application static and create a completely separate server-side API (likely in golaang) to to interact with the ACLs.
I'm leaning towards option 2 to keep this application relatively simple.
I re-modified the NGINX configuration to illustrate endpoint. With regard to ACL configuration, I also prefer the second approach, or wait for headscale to open up the relevant API
This is great! The only caveat I will say is that "/web" is not the default endpoint within the svelte application itself. It should be built with the env var
ENDPOINT=/web
due to the fact that${ENDPOINT}
is used as the application's base URL for redirects and things like that. The corresponding docker container would have to be built with--build-arg ENDPOINT=/web
as far as I can tell.Also, I would love to add ACL support. That was ultimately the goal and the reason that I created this project in the first place. Unfortunately, the ACL's have no exposure over the API so I have to make a choice:
- Make this application not static so the server side of the application can read and interact with the HuJSON ACL config file.
- Keep this application static and create a completely separate server-side API (likely in golaang) to to interact with the ACLs.
I'm leaning towards option 2 to keep this application relatively simple.
For sure option 2.
I've sort of a noob at this. I'm using SWAG so I'm curious how I'd adapt this configuration for that. And I'm assuming this is a different conf file than the one meant for headscale?
For friends who use NGINX
ENDPOINT="/admin"
nginx config:You can visit https://headscale.xxx.com/admin headscale.xxx.com is you domain name
The project is very good, thanks to the open source contribution, hope to add more features, such as ACL