Configuration
abystrixLicense is configured via Spring Boot's application.properties file. The file can be placed alongside the JAR or specified via command line.
Basic Configuration
properties
# Server
server.port=${SERVER_PORT:8080}
server.forward-headers-strategy=framework
# Database (H2 file-based)
spring.datasource.url=jdbc:h2:file:./data/abystrixLicense
spring.datasource.driver-class-name=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=password
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.jpa.hibernate.ddl-auto=update
# Vaadin
vaadin.productionMode=true
vaadin.url-mapping=/*
vaadin.exclude-urls=/swagger-ui/**,/api/**Discord Integration
To enable the Discord bot and Discord OAuth2 customer login:
properties
# Discord Bot Token
discord.bot.token=YOUR_BOT_TOKEN
discord.guild.id=YOUR_GUILD_ID
discord.alert.channel.id=YOUR_ALERT_CHANNEL_ID
# Discord OAuth2 (for customer dashboard)
spring.security.oauth2.client.registration.discord.client-id=YOUR_CLIENT_ID
spring.security.oauth2.client.registration.discord.client-secret=YOUR_CLIENT_SECRET
spring.security.oauth2.client.registration.discord.redirect-uri=https://your-domain.com/login/oauth2/code/discordEnvironment Variables
Key settings can be overridden via environment variables:
| Variable | Default | Description |
|---|---|---|
SERVER_PORT | 8080 | HTTP server port |
SPRING_DATASOURCE_URL | jdbc:h2:file:./data/abystrixLicense | Database connection URL |
H2 Console
The H2 database console is available at /h2-console when enabled. This is useful for debugging but should be disabled in production.
Forward Headers
When running behind a reverse proxy (Nginx, Cloudflare Tunnel, etc.), set:
properties
server.forward-headers-strategy=frameworkThis ensures HTTPS redirects and correct scheme handling.
