Skip to content

Reverse proxy subdirectory / ROOT_URL not considered by Iron:Router when handling routes / Meteor Iron:Router library unmaintained #3729

@deliciouslytyped

Description

@deliciouslytyped

I'm trying to set up Sandstorm with a reverse proxy, having it set up under a subdirectory (terminology?) of the base url.

Checking with the frontend on the dev console shows that setting BASE_URL in sandstorm.conf to something like "http://local.sandstorm.io:9999/sandstorm" correctly results in the setting propagating to meteor:

__meteor_runtime_config__.ROOT_URL
"https://local.sandstorm.io:9999/sandstorm" 

However the frontend continues to use the base url without the /sandstorm prefix.
It seems like the meteor Iron:Router library is unmaintained, and two of it's open issues and PRs are about adding this functionality.

This comment on a 3rd party project describes some of this; 4minitz/4minitz#152 (comment) , and apparently the Meteor docs recommend Flow Router now. (It seems like the Iron ecosystem was selected because it's for command line stuff?)

xref iron-meteor/iron-router#154 (comment)
iron-meteor/iron-url#17 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions