Web frontend for Netgrif Application Engine (NAE). Angular SPA served by nginx.
263
Run the web interface for Netgrif Application Engine (NAE) without building it yourself. This image contains the NAE frontend starter compiled to a static Angular application and served by nginx. It provides predefined views for login, case and task lists, task detail, public task and case pages, and user profile. It requires a running NAE backend; the backend is not part of this image.
The image is environment agnostic: set the backend address and other options as environment variables, and the
entrypoint renders them into env.js before nginx starts. The same image runs in development, staging, and production
without a rebuild. It is based on nginx:alpine and exposes port 80.
Start the container and point it at your NAE backend:
docker run -d --name nae-frontend \
-p 8080:80 \
-e API_BASE_URL=https://nae.example.com/api \
netgrif/application-engine-frontend:7.1.0
Open http://localhost:8080 and sign in with a user from your NAE instance.
The browser, not the container, calls the backend, so API_BASE_URL must be reachable from the network of your users.
services:
frontend:
image: netgrif/application-engine-frontend:7.1.0
ports:
- "8080:80"
environment:
API_BASE_URL: https://nae.example.com/api
DEFAULT_REALM: Admin
LOG_LEVEL: INFO
restart: unless-stopped
All variables are optional. An empty variable is ignored and the value from the bundled nae.json stays in effect.
| Variable | Purpose | Default |
|---|---|---|
API_BASE_URL | Address of the NAE backend API, used for authentication and all resources. | http://localhost:8080/api |
AUTO_RESOLVE_BACKEND_URL | true rewrites every provider address to <origin>/api and overrides API_BASE_URL. | false |
DEFAULT_REALM | Realm sent as the X-Realm-Id header on login and signup. | Admin |
LOG_LEVEL | Frontend log level. | DEBUG |
GATEWAY_URL | Gateway address used by the public-configuration endpoint. | http://localhost:8800/api |
APPLICATION_IDENTIFIER | Application identifier used by the public-configuration endpoint. | nae |
TYPE_IDENTIFIER | Application type used by the public-configuration endpoint. | default |
AUTO_RESOLVE_BACKEND_URL=true is the alternative to API_BASE_URL when nginx or an ingress serves the API on the
same origin as the frontend.
Values must not contain ", $, \, or control characters. The entrypoint rejects them and stops with an error
instead of writing an invalid env.js.
GATEWAY_URL, APPLICATION_IDENTIFIER, and TYPE_IDENTIFIER are used only by the public-configuration endpoint,
which stays disabled while resolve_configuration is false in nae.json.
index.html. HTML is not cached, hashed assets are.X-Realm-Id header in Access-Control-Allow-Headers. Otherwise login and signup fail on the preflight request./env.js is served with Cache-Control: no-store, so configuration changes apply after a container restart.Tags match NAE release versions, for example 7.1.0 and 7.0.3. There is no latest tag, so pin the version that
matches your backend.
The image builds from
netgrif/nae-frontend-application-starter; the
Dockerfile is in the repository root.
NETGRIF Community License 2.0: free for development, testing, evaluation, education, and other non-production use. Production use requires a commercial license from NETGRIF, s.r.o. See netgrif.com/license.
docker pull netgrif/application-engine-frontend:7.1.1