Nginx hosting an Ember with a backend API #ember-cli #Ember.js
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Ember proxy service

Nginx hosting an Ember app with a backend API #ember-cli #Ember.js

Running your Ember app

docker run --name my-app \
    --link my-backend-container:backend \
    -v /path/to/spa/dist:/app \
    -v /path/to/config:/conf \
    -d semtech/ember-proxy-service

All HTML requests and requests to a location matching the regex in the STATIC_FOLDERS_REGEX environment variable (default: ^/(assets|font)/) are served by the Ember app. Remaining requests are proxied to the backend API.

Custom Nginx configurations with a name like *.conf can be mounted in /config and will be included automatically.