From 99ed57d43beb44bb1e88e9e73aa3eb36efce0c58 Mon Sep 17 00:00:00 2001 From: James Greenwood Date: Mon, 17 Nov 2025 09:12:35 +0000 Subject: [PATCH] fix --- .gitea/workflows/build.yaml | 4 +++- config/prod.exs | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 1c35fb1..50af1bc 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -18,4 +18,6 @@ jobs: with: context: . push: true - tags: code.jamey.stream/jamey/action-requests-demo.jamey.stream:${{ gitea.sha }} + tags: | + code.jamey.stream/jamey/action-requests-demo.jamey.stream:${{ gitea.sha }} + code.jamey.stream/jamey/action-requests-demo.jamey.stream:latest diff --git a/config/prod.exs b/config/prod.exs index 975a68c..fa4c622 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -8,6 +8,13 @@ import Config config :action_requests_demo, ActionRequestsDemoWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json" +# Allow LiveView/WebSocket connections from the deployed host +config :action_requests_demo, ActionRequestsDemoWeb.Endpoint, + check_origin: [ + "https://action-requests-demo.jamey.stream", + "//action-requests-demo.jamey.stream" + ] + # Do not print debug messages in production config :logger, level: :info