Go to file
Eric Li 965c0f30dd Minor changes: vhost logic, rename tests, change api, update readme 2023-10-26 16:55:20 -04:00
tests Minor changes: vhost logic, rename tests, change api, update readme 2023-10-26 16:55:20 -04:00
README.md Minor changes: vhost logic, rename tests, change api, update readme 2023-10-26 16:55:20 -04:00
cron_script.py Add tests 2023-10-25 14:03:43 -04:00
csc_api.py Minor changes: vhost logic, rename tests, change api, update readme 2023-10-26 16:55:20 -04:00
systemd_template.j2 Minor template change and remove unnecessary imports from tests 2023-10-26 13:54:40 -04:00
user_script.py Minor changes: vhost logic, rename tests, change api, update readme 2023-10-26 16:55:20 -04:00

README.md

Easier web deployments

Usage

Consumes an API (import csc_api) with the following functions:

  • get_lingering_users() -> List[str]
  • create_vhost(domain: str, port: int, ip: str) -> bool
  • get_ip() -> str

Dummy csc_api lives in ./csc_api.py

Test with

pytest