From 00413cb629a6687c53343925e4d2505687397706 Mon Sep 17 00:00:00 2001 From: Stefanie-A Date: Mon, 28 Oct 2024 16:53:07 +0000 Subject: [PATCH] fix: default.conf --- .github/workflows/main.yaml | 1 + nginx/conf.d/default.conf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index c36b80f..ac1714c 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -23,6 +23,7 @@ jobs: cd python-uri-shortener echo "Welcome!" git pull origin main + docker system prune -a docker pull nginx:latest docker login -u stefnie -p ${{ secrets.docker_hub_token }} docker pull stefnie/api-image:latest diff --git a/nginx/conf.d/default.conf b/nginx/conf.d/default.conf index 2457f90..17c9ba0 100644 --- a/nginx/conf.d/default.conf +++ b/nginx/conf.d/default.conf @@ -2,7 +2,7 @@ server { listen 80; server_name 52.23.155.226; location / { - proxy_pass http://backend:8080; + proxy_pass http://localhost:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;