mirror of
https://github.com/Nyr/openvpn-install.git
synced 2025-04-13 05:51:02 +00:00
.. | ||
apis | ||
bin | ||
models | ||
resource/static/swagger-ui | ||
vpn | ||
__init__.py | ||
admin.yaml | ||
app.py | ||
main.py | ||
readme.md | ||
requirements.txt |
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