diff --git a/.github/workflows/PR-Auto-Deploy-V2.yml b/.github/workflows/PR-Auto-Deploy-V2.yml index bd546078d..2dbcd3260 100644 --- a/.github/workflows/PR-Auto-Deploy-V2.yml +++ b/.github/workflows/PR-Auto-Deploy-V2.yml @@ -318,7 +318,8 @@ jobs: SYSTEM_MAXFILESIZE: "100" METRICS_ENABLED: "true" SYSTEM_GOOGLEVISIBILITY: "false" - SWAGGER_SERVER_URL: "http://${{ secrets.VPS_HOST }}:${V2_PORT}" + SWAGGER_SERVER_URL: "https://${V2_PORT}.ssl.stirlingpdf.cloud" + baseUrl: "https://${V2_PORT}.ssl.stirlingpdf.cloud" restart: on-failure:5 stirling-pdf-v2-frontend: diff --git a/.github/workflows/deploy-on-v2-commit.yml b/.github/workflows/deploy-on-v2-commit.yml index 941db40cf..f2f90ccfa 100644 --- a/.github/workflows/deploy-on-v2-commit.yml +++ b/.github/workflows/deploy-on-v2-commit.yml @@ -151,7 +151,8 @@ jobs: SYSTEM_MAXFILESIZE: "100" METRICS_ENABLED: "true" SYSTEM_GOOGLEVISIBILITY: "false" - SWAGGER_SERVER_URL: "http://${{ secrets.VPS_HOST }}:3000" + SWAGGER_SERVER_URL: "https://demo.stirlingpdf.cloud" + baseUrl: "https://demo.stirlingpdf.cloud" restart: on-failure:5 frontend: diff --git a/frontend/public/og_images/home.png b/frontend/public/og_images/home.png new file mode 100644 index 000000000..577f8f476 Binary files /dev/null and b/frontend/public/og_images/home.png differ diff --git a/frontend/src/pages/HomePage.tsx b/frontend/src/pages/HomePage.tsx index 1cd5b4a00..a931f0090 100644 --- a/frontend/src/pages/HomePage.tsx +++ b/frontend/src/pages/HomePage.tsx @@ -34,7 +34,7 @@ function HomePageContent() { description: selectedTool?.description || t('app.description', 'The Free Adobe Acrobat alternative (10M+ Downloads)'), ogTitle: selectedTool?.title ? `${selectedTool.title} - Stirling PDF` : 'Stirling PDF', ogDescription: selectedTool?.description || t('app.description', 'The Free Adobe Acrobat alternative (10M+ Downloads)'), - ogImage: selectedTool ? `${baseUrl}/og_images/${selectedTool.id}.png` : `${baseUrl}/og_images/default.png`, + ogImage: selectedTool ? `${baseUrl}/og_images/${selectedTool.id}.png` : `${baseUrl}/og_images/home.png`, ogUrl: selectedTool ? `${baseUrl}${window.location.pathname}` : baseUrl });