This release is a pre-release and may not be stable for production use.
GenPAC Server
GenPAC的服务器端应用,定时或按需生成GenPAC所支持的代理配置文件。
演示
http://genpac-server.appspot.com/
PAC Template: https://genpac-server.appspot.com/pac/outer
Shortener: https://genpac-server.appspot.com/s/gwd
安装
# 安装或更新
$ pip install -U genpac-server
# 或从github安装更新开发版本
$ pip install -U https://github.com/JinnLynn/genpac-server/archive/master.zip
# 卸载
$ pip uninstall genpac-server
配置文件
配置文件可通过环境变量GENPAC_CONFIG设置,书写规则可参考sample/config.ini
运行
本地运行测试
mkdir genpac-server-test
cd genpac-server-test
curl -sL -O https://github.com/JinnLynn/genpac-server/raw/master/sample/app.py
curl -sL -O https://github.com/JinnLynn/genpac-server/raw/master/sample/config.ini
FLASK_APP=app.py FLASK_DEBUG=1 GENPAC_CONFIG=config.ini flask run
Docker
构建与运行
# 1. 使用Docker Hub上已构建的镜像
docker run -ti -p 8080:80 jinnlynn/genpac-server
# 2. 使用compose-file
cd sample
docker-compose -p gs up -d
# 3. 自行构建镜像
cd sample
docker build -t genpac-server .
docker run -ti -p 8080:80 genpac-server
使用配置文件的两种方式:
- 挂载到
/app/etc/config.ini - 挂载到任意位置,修改环境变量
GENPAC_CONFIG指向它
Google App Engine
Metadata
Release files for genpac-server 1.0b5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| genpac-server-1.0b5.tar.gz | 46.0 kB | Without provenance | Details for genpac-server-1.0b5.tar.gz |
Release files / genpac-server-1.0b5.tar.gz
| Download URL | genpac-server-1.0b5.tar.gz |
|---|---|
| Size | 46.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6c33e0ef21d5431badb4ddf46143f2ed4c9308ef3b802a664ea0bf3e4e90db6
|
|
BLAKE2b-256 checksum How to use checksums |
0283e3ecb53feb231b39ee13d8fb7930e0824771635759070577daf892577e9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14
|
Security for genpac-server 1.0b5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.