1
0
Fork 0
mirror of https://github.com/Nyr/openvpn-install.git synced 2025-04-13 05:51:02 +00:00
openvpn-install/openvpn_ui
2024-05-15 18:36:45 +08:00
..
apis init ui 2024-05-15 18:36:45 +08:00
bin init ui 2024-05-15 18:36:45 +08:00
models init ui 2024-05-15 18:36:45 +08:00
resource/static/swagger-ui init ui 2024-05-15 18:36:45 +08:00
vpn init ui 2024-05-15 18:36:45 +08:00
__init__.py init ui 2024-05-15 18:36:45 +08:00
admin.yaml init ui 2024-05-15 18:36:45 +08:00
app.py init ui 2024-05-15 18:36:45 +08:00
main.py init ui 2024-05-15 18:36:45 +08:00
readme.md init ui 2024-05-15 18:36:45 +08:00
requirements.txt init ui 2024-05-15 18:36:45 +08:00

open vpn admin

Simple web UI to manage OpenVPN users.

swagger ui <> python <> openvpn-install.sh

usage

  • run server
Install python3.10

cd project-path
pip install -r -i https://mirrors.aliyun.com/pypi/simple/ requirements.txt
openvpn_ui/bin/run_http_server.sh
  • access swagger ui
http://0.0.0.0:8080/api/docs

develop

docker run -it -v /Users/songgs/_git/openvpn-install:/app -p 8080:8080 --cap-add=NET_ADMIN python:3.10.14-bullseye bash

pip install -r -i https://mirrors.aliyun.com/pypi/simple/ requirements.txt
sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list
!! comment this line in openvpn-install.sh
# Discard stdin. Needed when running from an one-liner which includes a newline
read -N 999999 -t 0.001