Skip to content

Conversation

@nick1udwig
Copy link
Member

Problem

resolves #818

Solution

Update Caddyfile & App Store to avoid redirecting to secure subdomain (which is intrinsically non-public!)

Testing

Click around on https://apps.hyperware.ai

Does refreshing work?

Do links to apps work?

Docs Update

None

Notes

The relevant part of the Caddyfile:

apps.hyperware.ai {
    # Only rewrite paths that are NOT ACME challenges or assets
    @notacme_notassets {
        not path /.well-known/acme-challenge/*
        not path /assets/*
        not path /app/assets/*
        not path /*.woff
        not path /our.js
        not path /main:app-store:sys/apps-public
        not path /main:app-store:sys/apps-public/*
    }
    
    # Rewrite assets to the correct path
    @assets {
        path /assets/*
    }
    @appassets path_regexp appassets ^/app/assets/(.*)
    @our {
        path /our.js
        path /*.woff
        path /main:app-store:sys/apps-public
        path /main:app-store:sys/apps-public/*
    }
    
    rewrite @our {uri}
    rewrite @assets /main:app-store:sys{uri}
    rewrite @appassets /main:app-store:sys/assets/{re.appassets.1}
    rewrite @notacme_notassets /main:app-store:sys/public{uri}
    reverse_proxy localhost:8080
}

@nick1udwig nick1udwig merged commit af747cb into develop Oct 23, 2025
1 check passed
@nick1udwig nick1udwig deleted the hf/app-store-fix-public-refresh-and-links branch October 23, 2025 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants