网服注册服务
Go to file
2023-11-15 22:42:02 +08:00
assets Release the project 2023-11-08 09:37:18 +08:00
src Use client-secret to authenticate 2023-11-15 22:42:02 +08:00
templates Release the project 2023-11-08 09:37:18 +08:00
.gitignore Release the project 2023-11-08 09:37:18 +08:00
.pre-commit-config.yaml Release the project 2023-11-08 09:37:18 +08:00
config.json.example Use client-secret to authenticate 2023-11-15 22:42:02 +08:00
LICENSE Release the project 2023-11-08 09:37:18 +08:00
nginx.conf Release the project 2023-11-08 09:37:18 +08:00
README.md Release the project 2023-11-08 09:37:18 +08:00
requirements.txt Release the project 2023-11-08 09:37:18 +08:00

wangfu-register

Edit config.json and templates/*.html(turnstile site keys)

development

Create virtual environment and install dependencies

python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Debug the code

uvicorn src.main:app --reload

deployment

uvicorn src.main:app --host "127.0.0.1" --port 10010 --proxy-headers --forwarded-allow-ips "*"