Deploy on VPS or PC (Binary)
Here I suppose you're using Linux server (Windows is similar).
Steps
- Download the latest version from the Releases page and extract it to your machine, for example
/opt/subconv. Keep the extractedapiexecutable,mainpage/dist,config.yaml.example, andtemplate/directory together so the Web UI and runtime templates are available. cd /opt/subconvto enter the directorychmod +x apito give it execution permission- Put machine-specific runtime changes in
config.yaml, then adjusttemplate/zju.yamlortemplate/general.yamlas needed. The service usesDEFAULT_TEMPLATE, which iszjuby default.HOSTandPORTalso come fromconfig.yaml. For detailed template items, please refer to Configuration - Run the program.
Note: If you're not using a privileged user, you usually can't bind to a port below 1024. It's recommended to use a high port in
config.yaml, or you can usesetcapto give theapibinary the permission to bind to a low port. - Use reverse proxy (optional)