feat(api): listen on unix socket with gunicorn

This commit is contained in:
jo 2022-07-06 14:21:55 +02:00 committed by Kyle Robbertze
parent ec45717ccf
commit 1cb03c35d2
4 changed files with 18 additions and 4 deletions

View file

@ -274,8 +274,9 @@ install_service() {
template_file "$service_src" "$service_dest" \
sed \
-e "s|User=.*|User=${LIBRETIME_USER}|" \
-e "s|Group=.*|Group=${LIBRETIME_USER}|" \
-e "s|^User=.*|User=${LIBRETIME_USER}|" \
-e "s|^Group=.*|Group=${LIBRETIME_USER}|" \
-e "s|@@DEFAULT_WEB_USER@@|${DEFAULT_WEB_USER}|g" \
-e "s|@@CONFIG_DIR@@|${CONFIG_DIR}|g" \
-e "s|@@CONFIG_FILEPATH@@|${CONFIG_FILEPATH}|g" \
-e "s|@@LOG_DIR@@|${LOG_DIR}|g" \
@ -555,6 +556,7 @@ install_packages $(list_packages "$SCRIPT_DIR/api")
install_python_app "$SCRIPT_DIR/api[prod]"
install_service "libretime-api.service" "$SCRIPT_DIR/api/install/systemd/libretime-api.service"
install_service "libretime-api.socket" "$SCRIPT_DIR/api/install/systemd/libretime-api.socket"
# Install Playout
########################################################################################