├── blueprints ├── __init__.py ├── get_captcha.py ├── system.py ├── log.py ├── route.py ├── set.py ├── preauthkey.py ├── acl.py ├── forms.py ├── user.py ├── admin.py ├── auth.py └── node.py ├── static ├── adminui │ ├── src │ │ ├── css │ │ │ ├── admin.css │ │ │ └── login.css │ │ └── modules │ │ │ ├── admin.js │ │ │ ├── index.js │ │ │ └── view.js │ └── dist │ │ ├── modules │ │ ├── index.js │ │ └── view.js │ │ └── css │ │ └── login.css ├── layui │ └── font │ │ ├── iconfont.eot │ │ ├── iconfont.ttf │ │ ├── iconfont.woff │ │ └── iconfont.woff2 ├── views │ └── system │ │ ├── about.html │ │ └── theme.html ├── modules │ ├── common.js │ ├── echartsTheme.js │ └── console.js ├── index.js ├── config.js └── particles │ └── particles.min.js ├── .gitignore ├── docker-compose.yml ├── derp-example.yaml ├── models.py ├── Dockerfile ├── templates ├── auth │ ├── error.html │ ├── register.html │ ├── login.html │ └── reg.html ├── admin │ ├── help.html │ ├── log.html │ ├── password.html │ ├── info.html │ ├── preauthkey.html │ ├── deploy.html │ ├── acl.html │ ├── index.html │ ├── set.html │ ├── user.html │ ├── console.html │ └── node.html └── index.html ├── data-example.json ├── .github └── workflows │ └── main.yml ├── config_loader.py ├── exts.py ├── nginx-example.conf ├── init.sh ├── app.py ├── login_setup.py └── README.md /blueprints/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/adminui/src/css/admin.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/adminui/src/css/login.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/adminui/src/modules/admin.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/adminui/src/modules/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/adminui/src/modules/view.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__/ 2 | migrations/ 3 | blueprints/__pycache__/ 4 | headscale 5 | 6 | -------------------------------------------------------------------------------- /static/layui/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arounyf/Headscale-Admin-Pro/HEAD/static/layui/font/iconfont.eot -------------------------------------------------------------------------------- /static/layui/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arounyf/Headscale-Admin-Pro/HEAD/static/layui/font/iconfont.ttf -------------------------------------------------------------------------------- /static/layui/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arounyf/Headscale-Admin-Pro/HEAD/static/layui/font/iconfont.woff -------------------------------------------------------------------------------- /static/layui/font/iconfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arounyf/Headscale-Admin-Pro/HEAD/static/layui/font/iconfont.woff2 -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | services: 2 | hs-admin: 3 | image: runyf/hs-admin:latest 4 | # image: hs-admin 5 | container_name: hs-admin 6 | network_mode: host 7 | restart: unless-stopped 8 | volumes: 9 | - ~/hs-admin/app:/app 10 | - ~/hs-admin/config:/etc/headscale 11 | - ~/hs-admin/data:/var/lib/headscale 12 | environment: 13 | - TZ=Asia/Shanghai 14 | - FLASK_DEBUG=False 15 | -------------------------------------------------------------------------------- /derp-example.yaml: -------------------------------------------------------------------------------- 1 | # If you plan to somehow use headscale, please deploy your own DERP infra: https://tailscale.com/kb/1118/custom-derp-servers/ 2 | regions: 3 | 900: 4 | regionid: 900 5 | regioncode: localhost 6 | regionname: localhost 7 | nodes: 8 | - name: 900a 9 | regionid: 900 10 | hostname: localhost 11 | stunport: 3478 12 | stunonly: false 13 | derpport: 12340 14 | 15 | 16 | -------------------------------------------------------------------------------- /static/views/system/about.html: -------------------------------------------------------------------------------- 1 | 2 |
5 | 8 |9 | 10 |
11 | 14 |15 | 16 |
{{ message }}
22 | {% endif %} 23 || Action | Source | Destination |
|---|---|---|
| {action} | {src} | {dst} |
0
100 | 101 |0
106 | 107 |0
113 | 114 |0
119 | 120 || 注册时间 | 182 |183 | |
| 距离到期 | 186 |187 | 188 | | 189 |
| 项目地址 | 192 |193 | https://github.com/arounyf/Headscale-Admin-Pro 194 | | 195 |
| 公告中心 | 198 |欢迎使用Headscale-Admin-Pro | 199 |