Compare commits

...
2 Commits
Author SHA1 Message Date
westfarn 12fc4f9998 Merge master and keep HeyCatch short links off the container port.
Sync runner checkout / sync (pull_request) Successful in 6s
Master already has the public-page nginx from the 124 work, including the redirect that published port 8082. Keep that config and leave the shortlink Location relative.
2026-10-20 10:53:16 -05:00
westfarn 28fc51f723 Keep HeyCatch short links on the public host.
A relative redirect from the static vhost was rewritten with the container port, so links like /y landed on hesychia.ai:8082.
2026-10-20 10:26:19 -05:00
+6 -2
View File
@@ -95,8 +95,12 @@ server {
{% endif %} {% endif %}
{% if a.name == 'chat_web_app' and a.env == 'prod' %} {% if a.name == 'chat_web_app' and a.env == 'prod' %}
# HeyCatch short links. Unknown paths 404, so the SDK never sees /x. # HeyCatch short links.
location ~ ^/([a-z0-9])$ { # f Facebook, h Threads, i Instagram, l LinkedIn, r Reddit, x X, y YouTube.
# Relative Location: this vhost listens on the container port. An absolute
# redirect would publish that port (hesychia.ai:8082).
location ~ ^/([a-z0-9])/?$ {
absolute_redirect off;
return 302 /?utm_source=heycatch&utm_campaign=$1; return 302 /?utm_source=heycatch&utm_campaign=$1;
} }
{% endif %} {% endif %}