From 6d76a75658275689d62959fc2b5312fc27097acf Mon Sep 17 00:00:00 2001 From: Benjamin Chiverton Date: Tue, 2 Jul 2024 09:05:57 +0100 Subject: [PATCH] Change nginx port --- .github/workflows/instance-deploy-prod.yml | 2 +- .github/workflows/instance-deploy-test.yml | 2 +- src/Website/Company.Website/dockerfile | 2 +- src/Website/Company.Website/nginx.conf | 2 +- terraform/instance/container_apps.tf | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/instance-deploy-prod.yml b/.github/workflows/instance-deploy-prod.yml index f4cd26c..8b5d722 100644 --- a/.github/workflows/instance-deploy-prod.yml +++ b/.github/workflows/instance-deploy-prod.yml @@ -128,5 +128,5 @@ jobs: imageToDeploy: onlinestorecontainerregistry.azurecr.io/onlinestore-website:${{ github.sha }} location: 'East US' resourceGroup: onlinestore-shared-rg - targetPort: 80 + targetPort: 8080 environmentVariables: "API__BASEPATH=https://api.rockpal.co.uk" diff --git a/.github/workflows/instance-deploy-test.yml b/.github/workflows/instance-deploy-test.yml index e099908..2035c94 100644 --- a/.github/workflows/instance-deploy-test.yml +++ b/.github/workflows/instance-deploy-test.yml @@ -131,7 +131,7 @@ jobs: imageToDeploy: onlinestorecontainerregistry.azurecr.io/onlinestore-website:${{ github.sha }} location: 'East US' resourceGroup: onlinestore-shared-rg - targetPort: 80 + targetPort: 8080 environmentVariables: "API__BASEPATH=https://${{ github.head_ref }}-api.rockpal.co.uk" - name: Find Comment uses: peter-evans/find-comment@v1 diff --git a/src/Website/Company.Website/dockerfile b/src/Website/Company.Website/dockerfile index e011a6f..2690418 100644 --- a/src/Website/Company.Website/dockerfile +++ b/src/Website/Company.Website/dockerfile @@ -17,4 +17,4 @@ COPY /src/Website/Company.Website/nginx.conf /etc/nginx/nginx.conf COPY /src/Website/Company.Website/overwrite-config.sh /docker-entrypoint.d/overwrite-config.sh RUN chmod +x /docker-entrypoint.d/overwrite-config.sh -EXPOSE 80 +EXPOSE 8080 diff --git a/src/Website/Company.Website/nginx.conf b/src/Website/Company.Website/nginx.conf index afa559a..ca3e958 100644 --- a/src/Website/Company.Website/nginx.conf +++ b/src/Website/Company.Website/nginx.conf @@ -5,7 +5,7 @@ events { } application/wasm wasm; } server { - listen 80; + listen 8080; index index.html; location / { root /var/www/web; diff --git a/terraform/instance/container_apps.tf b/terraform/instance/container_apps.tf index f30baaa..eb738da 100644 --- a/terraform/instance/container_apps.tf +++ b/terraform/instance/container_apps.tf @@ -57,7 +57,7 @@ resource "azurerm_container_app" "website" { ingress { external_enabled = true transport = "http" - target_port = 80 + target_port = 8080 traffic_weight { latest_revision = true percentage = 100