Skip to content

Set base_url for mathicsserver ?  #771

@Carreau

Description

@Carreau

Is it possible to set the base url for mathics server ? I'd like to run it behind a reverse-proxy and can't expose it at the root of the domain. This seem to trigger issues with wrong URLs being requested.

II manage to have it to work locally by modifying the source and adding /base_url/ in many places, but I'm tempted to think there is a better way, but I'm unfamiliar with django. Pointers would be welcomed.

I'm guessing the following is possible. a {{base_url}} in templates, some way to automagically prepend something to all the django routes. And add a base-url attribute to the html body that can be accessed from within javascript to avoid having to template the javascript.

Much appreciated; with pointer and if you would be willing to accept such a PR, I could spend a couple of hours on it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions