Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable hosting server at a non-root URL #1300

Merged
merged 2 commits into from Jul 2, 2018
Merged

Enable hosting server at a non-root URL #1300

merged 2 commits into from Jul 2, 2018

Commits on Jun 29, 2018

  1. Enable hosting server at a non-root URL

    This change enables us to host the Flask OKpy server at a non-root URL, e.g.
    prefixing all the routes with `/foo`. The non-root URL host is enabled by
    setting the following environment variables:
    
    ```
    SCRIPT_NAME=/foo
    APPLICATION_ROOT=/foo
    ```
    
    Being able to host the application at a non-root URL enables use-cases such as
    for example a single SSL certificate and DNS entry being used for both the OKpy
    application and the AutoPY application with routing between the two
    applications being done by a URL prefix.
    c-w committed Jun 29, 2018
    Copy the full SHA
    6059fcd View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2018

  1. Copy the full SHA
    22bfb53 View commit details
    Browse the repository at this point in the history