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
24 changes: 24 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Sensitive/local environment files
.env
.env.local
.env.*.local

# VCS and editor metadata
.git
.gitignore
.idea
.vscode
*.iml

# OS junk
.DS_Store
**/.DS_Store

# Local runtime artifacts
*.log
.config
.local

# Misc local files
*.swp
*.swo
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
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# syntax=docker/dockerfile:1
# 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.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Approov Limited

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
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