Compare commits

...
Author SHA1 Message Date
MickLesk 8b5f9d3a3b Warracker: fill in the nginx settings the upstream entrypoint sets
Upstream's nginx.conf logs to /dev/stderr, which nginx cannot open under
systemd, so nginx failed to start on install. The proxy trust
placeholders get the entrypoint's defaults (private networks only).
2026-11-28 14:02:34 +01:00
Rögl-Brunner Michel f89ab05a40 warracker: use the bumped Python version in the ct update 2026-11-27 14:56:21 +01:00
github-actions[bot] b624ce3f41 warracker: bump Python from 3.12 to 3.15 2026-11-27 13:49:37 +00:00
2 changed files with 6 additions and 2 deletions

No files matched your search

+2 -1
View File
@@ -39,9 +39,10 @@ function update_script() {
fetch_and_deploy_gh_release "warracker" "sassanix/Warracker" "tarball" "latest" "/opt/warracker"
PYTHON_VERSION="3.15" setup_uv
msg_info "Updating Warracker"
cd /opt/warracker/backend
$STD uv venv --clear .venv
$STD uv venv --python 3.15 --clear .venv
$STD source .venv/bin/activate
$STD uv pip install -r requirements.txt
msg_ok "Updated Warracker"
+4 -1
View File
@@ -20,7 +20,7 @@ $STD apt install -y \
nginx
msg_ok "Installed Dependencies"
PYTHON_VERSION="3.12" setup_uv
PYTHON_VERSION="3.15" setup_uv
PG_VERSION="17" setup_postgresql
msg_info "Setup PostgreSQL"
@@ -68,6 +68,9 @@ sed -i \
-e "s|alias /var/www/html/locales/;|alias /opt/warracker/locales/;|" \
-e "s|/var/www/html|/opt/warracker/frontend|g" \
-e "s/client_max_body_size __NGINX_MAX_BODY_SIZE_CONFIG_VALUE__/client_max_body_size 32M/" \
-e "s|error_log /dev/stderr|error_log /var/log/nginx/error.log|" \
-e "s|__NGINX_TRUST_ALL_PROXIES__|0|g" \
-e "s|__NGINX_TRUST_PRIVATE_PROXIES__|1|g" \
/etc/nginx/sites-available/warracker.conf
nginx_enable_site warracker.conf
msg_ok "Configured Nginx"