No description
|
||
---|---|---|
.forgejo/workflows | ||
.vscode | ||
bin | ||
public | ||
src | ||
.env.example | ||
.eslintrc.ts | ||
.gitignore | ||
.prettierrc | ||
Dockerfile | ||
index.html | ||
nginx.conf | ||
package-lock.json | ||
package.json | ||
postcss.config.js | ||
README.md | ||
tailwind.config.js | ||
tsconfig.json | ||
tsconfig.node.json | ||
vite.config.ts |
Headview
A Vue frontend for Headscale
Warning
This is only compatible with Headscale
<=0.22.3
Usage
Make sure to authorize CORS requests if you don't deploy on the same origin. See the CORS documentation for more information.
Using Docker
services:
headscale:
image: headscale/headscale:0.22.3
container_name: headscale
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config:/etc/headscale/
command: headscale serve
restart: unless-stopped
healthcheck:
test: ["CMD", "timeout", "1", "bash", "-c", "</dev/tcp/127.0.0.1/8080"]
expose:
- "8080"
headview:
build: https://git.hicham.party/hicham/headview.git
container_name: headscale-ui
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:80/",
]
Static Deployment
Clone and build:
git clone https://git.hicham.party/hicham/headview.git
cd headview
npm install
npm run build
Then deploy the files in the dist
folder to your server.