HUB
Sign inSign up
application-engine-frontend logo

netgrif/application-engine-frontend

By netgrif

•Updated about 13 hours ago

Web frontend for Netgrif Application Engine (NAE). Angular SPA served by nginx.

Image
Developer tools
Web servers
0

263

netgrif/application-engine-frontend repository overview

⁠Netgrif Application Engine frontend

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.

⁠Quick start

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.

⁠Docker Compose

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

⁠Configuration

All variables are optional. An empty variable is ignored and the value from the bundled nae.json stays in effect.

VariablePurposeDefault
API_BASE_URLAddress of the NAE backend API, used for authentication and all resources.http://localhost:8080/api
AUTO_RESOLVE_BACKEND_URLtrue rewrites every provider address to <origin>/api and overrides API_BASE_URL.false
DEFAULT_REALMRealm sent as the X-Realm-Id header on login and signup.Admin
LOG_LEVELFrontend log level.DEBUG
GATEWAY_URLGateway address used by the public-configuration endpoint.http://localhost:8800/api
APPLICATION_IDENTIFIERApplication identifier used by the public-configuration endpoint.nae
TYPE_IDENTIFIERApplication 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.

⁠Deployment notes

  • Terminate TLS in a reverse proxy or ingress in front of the container. The image serves plain HTTP on port 80.
  • nginx already handles SPA routing: unknown paths fall back to index.html. HTML is not cached, hashed assets are.
  • When the frontend and the API run on different origins, the backend must allow the frontend origin and the 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

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.

⁠Source and license

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⁠.

Tag summary
Recent tags
Content type
Image
Digest
sha256:875306efe…
Size
35 MB
Last updated
about 13 hours ago
docker pull netgrif/application-engine-frontend:7.1.1