Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 8 additions & 17 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
###########
# SERVER
###########
# HTTP port the backend listens on
HTTP_PORT=8080

HTTP_REDIRECT=false
HTTP_PORT=8002
HTTPS_PORT=8003
# Approov secret: approov secret -get base64url
APPROOV_BASE64URL_SECRET=approov_base64url_secret_here

# Localhost
SERVER_HOSTNAME=0.0.0.0

############
# APPROOV
############

# For production usage the secret is always retrieved with the Approov CLI tool,
# that can be also used to generate valid and invalid tokens for testing purposes.
# Please check the Approov docs at https://approov.io/docs/latest/approov-cli-tool-reference/#token-commands.
#
# For following along this Hello server examples you just need to use the dummy
# secret provided in the README.md#the-dummyd-secret at the root of this repo.
APPROOV_BASE64_SECRET=approov_base64_secret_here
# Command that starts your server inside the container
APP_START_CMD=/app/gradlew bootRun --args="--server.port=${HTTP_PORT} --server.address=${SERVER_HOSTNAME}"
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
.DS_Store
src/.DS_Store
src/main/.DS_Store

### STS ###
.apt_generated
Expand Down Expand Up @@ -31,3 +34,8 @@ nbdist/

.local/
.env
.config/

# macOS
.DS_Store
**/.DS_Store
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# syntax=docker/dockerfile:1
# Builds the quickstart backend container image and configures scripts/install-prerequisites.sh and scripts/build.sh
# as the entrypoint used both locally and when deployed via Docker.
FROM eclipse-temurin:21-jdk

ENV APP_HOME=/workspace \
RUN_MODE=container

WORKDIR /app

COPY . .

# Provide APP_START_CMD via --env-file.
CMD ["bash", "scripts/build.sh"]
111 changes: 0 additions & 111 deletions EXAMPLES.md

This file was deleted.

55 changes: 0 additions & 55 deletions OVERVIEW.md

This file was deleted.

33 changes: 0 additions & 33 deletions QUICKSTARTS.md

This file was deleted.

Loading