Skip to main content

Configuration

note

This guide assumes familiarity with the Spring Framework.
If you are new to Spring, we recommend starting with their official guides to get up to speed.

Singularity is highly configurable. This allows you to use it as a baseline for any type of project. It includes well-thought defaults that make your onboarding really smooth.

This page covers application-specific configuration only. If you need to configure, for example, the database, make sure to check out the corresponding page and the sidebar to see all features of this library.

Application Configuration

These settings are required to make the app work as intended.

PropertyTypeDescriptionDefault
singularity.app.nameStringThe name of the application. This is used in various places, including database names and email templates.Singularity
singularity.app.base-urlStringBase URL for the application. This is used to generate links to files, emails and other application resources. Do not use /api, use the base path instead.http://localhost:8000
singularity.app.secureBooleanEnable HTTPS and secure cookies for the application. Please set this to true in a production setup.false
singularity.app.support-mailStringThe email address users can contact for questions about your app.

Root User

You can create a root user on startup if enabled and configured.

PropertyTypeDescriptionDefault
singularity.app.create-root-userBooleanShould the application create a root user at application start?false
singularity.app.root-emailStringThe email associated to the root user.
singularity.app.root-passwordStringThe password associated to the root user.

Frontend

Most probably your application has a frontend. For both secure and easy integration, you can set the following parameters:

PropertyTypeDescriptionDefault
singularity.ui.base-urlStringBase URL for the user interface of your application. Used as a trusted origin for CORS and in email templates.http://localhost:4200
singularity.ui.icon-urlStringURL to the application icon.
singularity.ui.primary-colorStringPrimary color for the UI, used in email templates and other branding elements.#6366f1
singularity.ui.contact-pathStringPath to the contact page in your frontend application./contact
singularity.ui.legal-notice-pathStringPath to the legal notice page./legal-notice
singularity.ui.privacy-policy-pathStringPath to the privacy policy page./privacy-policy
singularity.ui.password-reset-pathStringPath to the password reset page in your frontend application./auth/reset-password
singularity.ui.email-verification-pathStringPath to the email verification page in your frontend application./auth/verify-email