From f5a72358f373f742bb07b5accfa698a63ae9f262 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 25 Mar 2026 12:15:16 +0100 Subject: [PATCH] fix(tubearchivist): remove nginx, backend listens directly on 8000 - Remove nginx reverse proxy (caused 502 because backend didn't start) - TA_PORT=8000 so Django serves directly on port 8000 --- install/tubearchivist-install.sh | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/install/tubearchivist-install.sh b/install/tubearchivist-install.sh index 0157c1ab..05a8f3ab 100644 --- a/install/tubearchivist-install.sh +++ b/install/tubearchivist-install.sh @@ -17,7 +17,6 @@ msg_info "Installing Dependencies" $STD apt install -y \ build-essential \ git \ - nginx \ redis-server \ atomicparsley \ python3-dev \ @@ -85,7 +84,7 @@ cat </opt/tubearchivist/.env TA_HOST=http://${LOCAL_IP}:8000 TA_USERNAME=admin TA_PASSWORD=${TA_PASSWORD} -TA_PORT=8100 +TA_PORT=8000 ELASTIC_PASSWORD=${ES_PASSWORD} REDIS_CON=redis://localhost:6379 ES_URL=http://localhost:9200 @@ -96,33 +95,6 @@ EOF $STD systemctl enable --now redis-server msg_ok "Set up Tube Archivist" -msg_info "Configuring Nginx" -cat <<'EOF' >/etc/nginx/sites-available/tubearchivist -server { - listen 8000; - server_name _; - - client_max_body_size 5G; - - location /static/ { - alias /opt/tubearchivist/backend/static/; - expires 1y; - } - - location / { - proxy_pass http://127.0.0.1:8100; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_read_timeout 1800; - } -} -EOF -ln -sf /etc/nginx/sites-available/tubearchivist /etc/nginx/sites-enabled/tubearchivist -rm -f /etc/nginx/sites-enabled/default -$STD systemctl restart nginx -msg_ok "Configured Nginx" - msg_info "Creating Service" cat </etc/systemd/system/tubearchivist.service [Unit]