Generate JHipster 9.3.0 baseline application
This commit is contained in:
1 parent
0a9b7b923f
commit
1d97cc4e31
345 files changed
+25563
No files matched your search
@@ -0,0 +1,10 @@
|
||||
|
||||
${AnsiColor.GREEN} ██╗${AnsiColor.BLUE} ██╗ ██╗ ████████╗ ███████╗ ██████╗ ████████╗ ████████╗ ████${AnsiColor.GREEN}███╗
|
||||
${AnsiColor.GREEN} ██║ ██║ ${AnsiColor.BLUE} ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔══${AnsiColor.GREEN}═══╝ ██╔═══██╗
|
||||
${AnsiColor.GREEN} ██║ ████████║${AnsiColor.BLUE} ██║ ███████╔╝ ╚█████╗ ██║ ${AnsiColor.GREEN} ██████╗ ███████╔╝
|
||||
${AnsiColor.GREEN}██╗ ██║ ██╔═══██║ ██║ ${AnsiColor.BLUE} ██╔════╝ ╚═══██╗ ${AnsiColor.GREEN}██║ ██╔═══╝ ██╔══██║
|
||||
${AnsiColor.GREEN}╚██████╔╝ ██║ ██║ ████████╗ ██║ ${AnsiColor.BLUE} ██████${AnsiColor.GREEN}╔╝ ██║ ████████╗ ██║ ╚██╗
|
||||
${AnsiColor.GREEN} ╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ${AnsiColor.BLUE} ╚═${AnsiColor.GREEN}════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝
|
||||
|
||||
${AnsiColor.BRIGHT_BLUE}:: JHipster 🤓 :: Running Spring Boot ${spring-boot.version} :: Startup profile(s) ${spring.profiles.active} ::
|
||||
:: https://www.jhipster.tech ::${AnsiColor.DEFAULT}
|
||||
@@ -0,0 +1,97 @@
|
||||
# ===================================================================
|
||||
# Spring Boot configuration for the "dev" profile.
|
||||
#
|
||||
# This configuration overrides the application.yml file.
|
||||
#
|
||||
# More information on profiles: https://www.jhipster.tech/profiles/
|
||||
# More information on configuration properties: https://www.jhipster.tech/common-application-properties/
|
||||
# ===================================================================
|
||||
|
||||
# ===================================================================
|
||||
# Standard Spring Boot properties.
|
||||
# Full reference is available at:
|
||||
# https://docs.spring.io/spring-boot/appendix/application-properties/index.html
|
||||
# ===================================================================
|
||||
|
||||
logging:
|
||||
level:
|
||||
ROOT: DEBUG
|
||||
tech.jhipster: DEBUG
|
||||
org.hibernate.SQL: DEBUG
|
||||
com.example.questionbank: DEBUG
|
||||
|
||||
spring:
|
||||
devtools:
|
||||
restart:
|
||||
enabled: true
|
||||
additional-exclude: static/**
|
||||
livereload:
|
||||
enabled: false # we use Webpack dev server + BrowserSync for livereload
|
||||
jackson:
|
||||
serialization:
|
||||
indent-output: true
|
||||
datasource:
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
url: jdbc:postgresql://localhost:5432/questionBank
|
||||
hikari:
|
||||
poolName: Hikari
|
||||
auto-commit: false
|
||||
liquibase:
|
||||
# Remove 'faker' if you do not want the sample data to be loaded automatically
|
||||
contexts: dev, faker
|
||||
mail:
|
||||
host: localhost
|
||||
port: 25
|
||||
messages:
|
||||
cache-duration: PT1S # 1 second, see the ISO 8601 standard
|
||||
thymeleaf:
|
||||
cache: false
|
||||
|
||||
server:
|
||||
port: 8080
|
||||
# make sure requests the proxy uri instead of the server one
|
||||
forward-headers-strategy: native
|
||||
|
||||
# ===================================================================
|
||||
# JHipster specific properties
|
||||
#
|
||||
# Full reference is available at: https://www.jhipster.tech/common-application-properties/
|
||||
# ===================================================================
|
||||
|
||||
jhipster:
|
||||
# CORS is only enabled by default with the "dev" profile
|
||||
cors:
|
||||
# Allow Ionic for JHipster by default (* no longer allowed in Spring Boot 2.4+)
|
||||
allowed-origins: 'http://localhost:8100,https://localhost:8100,http://localhost:9000,https://localhost:9000'
|
||||
# Enable CORS when running in GitHub Codespaces
|
||||
allowed-origin-patterns: 'https://*.githubpreview.dev'
|
||||
allowed-methods: '*'
|
||||
allowed-headers: '*'
|
||||
exposed-headers: 'Authorization,Link,X-Total-Count,X-${jhipster.clientApp.name}-alert,X-${jhipster.clientApp.name}-error,X-${jhipster.clientApp.name}-params'
|
||||
allow-credentials: true
|
||||
max-age: 1800
|
||||
security:
|
||||
authentication:
|
||||
jwt:
|
||||
# Token is valid 24 hours
|
||||
token-validity-in-seconds: 86400
|
||||
token-validity-in-seconds-for-remember-me: 2592000
|
||||
mail: # specific JHipster mail property, for standard properties see MailProperties
|
||||
base-url: http://127.0.0.1:8080
|
||||
logging:
|
||||
use-json-format: false # By default, logs are not in Json format
|
||||
logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
|
||||
enabled: false
|
||||
host: localhost
|
||||
port: 5000
|
||||
ring-buffer-size: 512
|
||||
# ===================================================================
|
||||
# Application specific properties
|
||||
# Add your own application properties here, see the ApplicationProperties class
|
||||
# to have type-safe configuration, like in the JHipsterProperties above
|
||||
#
|
||||
# More documentation is available at:
|
||||
# https://www.jhipster.tech/common-application-properties/
|
||||
# ===================================================================
|
||||
|
||||
# application:
|
||||
@@ -0,0 +1,110 @@
|
||||
# ===================================================================
|
||||
# Spring Boot configuration for the "prod" profile.
|
||||
#
|
||||
# This configuration overrides the application.yml file.
|
||||
#
|
||||
# More information on profiles: https://www.jhipster.tech/profiles/
|
||||
# More information on configuration properties: https://www.jhipster.tech/common-application-properties/
|
||||
# ===================================================================
|
||||
|
||||
# ===================================================================
|
||||
# Standard Spring Boot properties.
|
||||
# Full reference is available at:
|
||||
# https://docs.spring.io/spring-boot/appendix/application-properties/index.html
|
||||
# ===================================================================
|
||||
|
||||
logging:
|
||||
level:
|
||||
ROOT: INFO
|
||||
tech.jhipster: INFO
|
||||
com.example.questionbank: INFO
|
||||
|
||||
management:
|
||||
prometheus:
|
||||
metrics:
|
||||
export:
|
||||
enabled: false
|
||||
|
||||
spring:
|
||||
devtools:
|
||||
restart:
|
||||
enabled: false
|
||||
livereload:
|
||||
enabled: false
|
||||
datasource:
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
url: jdbc:postgresql://localhost:5432/questionBank
|
||||
hikari:
|
||||
poolName: Hikari
|
||||
auto-commit: false
|
||||
# Replace by 'prod, faker' to add the faker context and have sample data loaded in production
|
||||
liquibase:
|
||||
contexts: prod
|
||||
mail:
|
||||
host: localhost
|
||||
port: 25
|
||||
thymeleaf:
|
||||
cache: true
|
||||
|
||||
# ===================================================================
|
||||
# To enable TLS in production, generate a certificate using:
|
||||
# keytool -genkey -alias questionbank -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650
|
||||
#
|
||||
# You can also use Let's Encrypt:
|
||||
# See details in topic "Create a Java Keystore (.JKS) from Let's Encrypt Certificates" on https://maximilian-boehm.com/en-gb/blog
|
||||
#
|
||||
# Then, modify the server.ssl properties so your "server" configuration looks like:
|
||||
#
|
||||
# server:
|
||||
# port: 443
|
||||
# ssl:
|
||||
# key-store: classpath:config/tls/keystore.p12
|
||||
# key-store-password: password
|
||||
# key-store-type: PKCS12
|
||||
# key-alias: selfsigned
|
||||
# # The ciphers suite enforce the security by deactivating some old and deprecated SSL cipher, this list was tested against SSL Labs (https://www.ssllabs.com/ssltest/)
|
||||
# ciphers: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 ,TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 ,TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 ,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_DHE_RSA_WITH_AES_128_CBC_SHA256,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_256_CBC_SHA256,TLS_DHE_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA,TLS_RSA_WITH_CAMELLIA_256_CBC_SHA,TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA,TLS_RSA_WITH_CAMELLIA_128_CBC_SHA
|
||||
# ===================================================================
|
||||
server:
|
||||
port: 8080
|
||||
shutdown: graceful # see https://docs.spring.io/spring-boot/reference/web/graceful-shutdown.html#web.graceful-shutdown
|
||||
compression:
|
||||
enabled: true
|
||||
mime-types: text/html,text/xml,text/plain,text/css,application/javascript,application/json,image/svg+xml
|
||||
min-response-size: 1024
|
||||
|
||||
# ===================================================================
|
||||
# JHipster specific properties
|
||||
#
|
||||
# Full reference is available at: https://www.jhipster.tech/common-application-properties/
|
||||
# ===================================================================
|
||||
|
||||
jhipster:
|
||||
http:
|
||||
cache: # Used by the CachingHttpHeadersFilter
|
||||
timeToLiveInDays: 1461
|
||||
security:
|
||||
authentication:
|
||||
jwt:
|
||||
# Token is valid 24 hours
|
||||
token-validity-in-seconds: 86400
|
||||
token-validity-in-seconds-for-remember-me: 2592000
|
||||
mail: # specific JHipster mail property, for standard properties see MailProperties
|
||||
base-url: http://my-server-url-to-change # Modify according to your server's URL
|
||||
logging:
|
||||
use-json-format: false # By default, logs are not in Json format
|
||||
logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
|
||||
enabled: false
|
||||
host: localhost
|
||||
port: 5000
|
||||
ring-buffer-size: 512
|
||||
# ===================================================================
|
||||
# Application specific properties
|
||||
# Add your own application properties here, see the ApplicationProperties class
|
||||
# to have type-safe configuration, like in the JHipsterProperties above
|
||||
#
|
||||
# More documentation is available at:
|
||||
# https://www.jhipster.tech/common-application-properties/
|
||||
# ===================================================================
|
||||
|
||||
# application:
|
||||
@@ -0,0 +1,23 @@
|
||||
# ===================================================================
|
||||
# Spring Boot configuration for the "secret-samples" profile.
|
||||
#
|
||||
# This configuration overrides the application.yml file.
|
||||
#
|
||||
# More information on profiles: https://www.jhipster.tech/profiles/
|
||||
# More information on configuration properties: https://www.jhipster.tech/common-application-properties/
|
||||
# ===================================================================
|
||||
|
||||
# ===================================================================
|
||||
# Samples for required secrets to be used in development and ci using prod profile.
|
||||
# ===================================================================
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
username: questionBank
|
||||
password:
|
||||
|
||||
jhipster:
|
||||
security:
|
||||
authentication:
|
||||
jwt:
|
||||
base64-secret: MzY1ZDU0MDM3M2Y5YWRiMDYxYjBmYzZlOTMxMWFiNmYyMDEyZTUzZjYxOWFjNjhlNjU2NzcxYjkwY2Y0MGIwOGUyNTc5NWQyOGY3OGJkMjExZjhkYzU3ZGU4ZDc0ZmZiMTYwMzY0NGM4ZWZmODRhZTZjNzBlNjk5MWJkYjM5YjI=
|
||||
@@ -0,0 +1,27 @@
|
||||
# ===================================================================
|
||||
# Activate this profile to enable TLS and HTTP/2.
|
||||
#
|
||||
# JHipster has generated a self-signed certificate, which will be used to encrypt traffic.
|
||||
# As your browser will not understand this certificate, you will need to import it.
|
||||
#
|
||||
# Another (easiest) solution with Chrome is to enable the "allow-insecure-localhost" flag
|
||||
# at chrome://flags/#allow-insecure-localhost
|
||||
# ===================================================================
|
||||
server:
|
||||
ssl:
|
||||
key-store: classpath:config/tls/keystore.p12
|
||||
key-store-password: password
|
||||
key-store-type: PKCS12
|
||||
key-alias: selfsigned
|
||||
ciphers:
|
||||
- TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
|
||||
- TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
|
||||
- TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
|
||||
- TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
|
||||
- TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
|
||||
- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
|
||||
- TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
|
||||
- TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
|
||||
enabled-protocols: TLSv1.2
|
||||
http2:
|
||||
enabled: true
|
||||
@@ -0,0 +1,229 @@
|
||||
# ===================================================================
|
||||
# Spring Boot configuration.
|
||||
#
|
||||
# This configuration will be overridden by the Spring profile you use,
|
||||
# for example application-dev.yml if you use the "dev" profile.
|
||||
#
|
||||
# More information on profiles: https://www.jhipster.tech/profiles/
|
||||
# More information on configuration properties: https://www.jhipster.tech/common-application-properties/
|
||||
# ===================================================================
|
||||
|
||||
# ===================================================================
|
||||
# Standard Spring Boot properties.
|
||||
# Full reference is available at:
|
||||
# https://docs.spring.io/spring-boot/appendix/application-properties/index.html
|
||||
# ===================================================================
|
||||
|
||||
---
|
||||
# Conditionally disable springdoc on missing api-docs profile
|
||||
spring:
|
||||
config:
|
||||
activate:
|
||||
on-profile: '!api-docs'
|
||||
springdoc:
|
||||
api-docs:
|
||||
enabled: false
|
||||
---
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
base-path: /management
|
||||
exposure:
|
||||
include:
|
||||
- configprops
|
||||
- env
|
||||
- health
|
||||
- info
|
||||
- jhimetrics
|
||||
- jhiopenapigroups
|
||||
- logfile
|
||||
- loggers
|
||||
- prometheus
|
||||
- threaddump
|
||||
- liquibase
|
||||
endpoint:
|
||||
health:
|
||||
show-details: when_authorized
|
||||
roles: 'ROLE_ADMIN'
|
||||
probes:
|
||||
enabled: true
|
||||
group:
|
||||
liveness:
|
||||
include: livenessState
|
||||
readiness:
|
||||
include: readinessState,db
|
||||
jhimetrics:
|
||||
access: read-only
|
||||
info:
|
||||
git:
|
||||
mode: full
|
||||
env:
|
||||
enabled: true
|
||||
health:
|
||||
mail:
|
||||
enabled: false # When using the MailService, configure an SMTP server and set this to true
|
||||
prometheus:
|
||||
metrics:
|
||||
export:
|
||||
enabled: true
|
||||
step: 60
|
||||
observations:
|
||||
key-values:
|
||||
application: ${spring.application.name}
|
||||
metrics:
|
||||
enable:
|
||||
http: true
|
||||
jvm: true
|
||||
logback: true
|
||||
process: true
|
||||
system: true
|
||||
distribution:
|
||||
percentiles-histogram:
|
||||
all: true
|
||||
percentiles:
|
||||
all: 0, 0.5, 0.75, 0.95, 0.99, 1.0
|
||||
data:
|
||||
repository:
|
||||
autotime:
|
||||
enabled: true
|
||||
tags:
|
||||
application: ${spring.application.name}
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: questionBank
|
||||
docker:
|
||||
compose:
|
||||
enabled: true
|
||||
lifecycle-management: start-only
|
||||
file: src/main/docker/services.yml
|
||||
profiles:
|
||||
# The commented value for `active` can be replaced with valid Spring profiles to load.
|
||||
# Otherwise, it will be filled in by maven when building the JAR file
|
||||
# Either way, it can be overridden by `--spring.profiles.active` value passed in the commandline or `-Dspring.profiles.active` set in `JAVA_OPTS`
|
||||
active: '@spring.profiles.active@'
|
||||
group:
|
||||
dev:
|
||||
- secret-samples
|
||||
- api-docs
|
||||
# Uncomment to activate TLS for the dev profile
|
||||
#- tls
|
||||
jmx:
|
||||
enabled: false
|
||||
data:
|
||||
jpa:
|
||||
repositories:
|
||||
bootstrap-mode: deferred
|
||||
jpa:
|
||||
open-in-view: false
|
||||
properties:
|
||||
hibernate.jdbc.time_zone: UTC
|
||||
hibernate.timezone.default_storage: NORMALIZE
|
||||
hibernate.type.preferred_instant_jdbc_type: TIMESTAMP
|
||||
hibernate.id.new_generator_mappings: true
|
||||
hibernate.connection.provider_disables_autocommit: true
|
||||
hibernate.cache.use_second_level_cache: false
|
||||
hibernate.cache.use_query_cache: false
|
||||
hibernate.generate_statistics: false
|
||||
# modify batch size as necessary
|
||||
hibernate.jdbc.batch_size: 25
|
||||
hibernate.order_inserts: true
|
||||
hibernate.order_updates: true
|
||||
hibernate.query.fail_on_pagination_over_collection_fetch: true
|
||||
hibernate.query.in_clause_parameter_padding: true
|
||||
hibernate:
|
||||
ddl-auto: none
|
||||
naming:
|
||||
physical-strategy: org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy
|
||||
implicit-strategy: org.springframework.boot.hibernate.SpringImplicitNamingStrategy
|
||||
messages:
|
||||
basename: i18n/messages
|
||||
main:
|
||||
allow-bean-definition-overriding: true
|
||||
mvc:
|
||||
problemdetails:
|
||||
enabled: true
|
||||
security:
|
||||
oauth2:
|
||||
resourceserver:
|
||||
jwt:
|
||||
authority-prefix: ''
|
||||
authorities-claim-name: auth
|
||||
task:
|
||||
execution:
|
||||
thread-name-prefix: question-bank-task-
|
||||
pool:
|
||||
core-size: 2
|
||||
max-size: 50
|
||||
queue-capacity: 10000
|
||||
scheduling:
|
||||
thread-name-prefix: question-bank-scheduling-
|
||||
pool:
|
||||
size: 2
|
||||
thymeleaf:
|
||||
mode: HTML
|
||||
output:
|
||||
ansi:
|
||||
console-available: true
|
||||
|
||||
server:
|
||||
servlet:
|
||||
session:
|
||||
cookie:
|
||||
http-only: true
|
||||
|
||||
springdoc:
|
||||
show-actuator: true
|
||||
|
||||
# Properties to be exposed on the /info management endpoint
|
||||
info:
|
||||
# Comma separated list of profiles that will trigger the ribbon to show
|
||||
display-ribbon-on-profiles: 'dev'
|
||||
|
||||
# ===================================================================
|
||||
# JHipster specific properties
|
||||
#
|
||||
# Full reference is available at: https://www.jhipster.tech/common-application-properties/
|
||||
# ===================================================================
|
||||
|
||||
jhipster:
|
||||
clientApp:
|
||||
name: 'questionBankApp'
|
||||
# By default CORS is disabled. Uncomment to enable.
|
||||
# cors:
|
||||
# allowed-origins: "http://localhost:8100,http://localhost:9000"
|
||||
# allowed-methods: "*"
|
||||
# allowed-headers: "*"
|
||||
# exposed-headers: "Authorization,Link,X-Total-Count,X-${jhipster.clientApp.name}-alert,X-${jhipster.clientApp.name}-error,X-${jhipster.clientApp.name}-params"
|
||||
# allow-credentials: true
|
||||
# max-age: 1800
|
||||
mail:
|
||||
from: questionBank@localhost
|
||||
api-docs:
|
||||
default-include-pattern: /api/**
|
||||
management-include-pattern: /management/**
|
||||
title: Question Bank API
|
||||
description: Question Bank API documentation
|
||||
version: 0.0.1
|
||||
terms-of-service-url:
|
||||
contact-name:
|
||||
contact-url:
|
||||
contact-email:
|
||||
license: unlicensed
|
||||
license-url:
|
||||
security:
|
||||
content-security-policy: "default-src 'self'; frame-src 'self' data:; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://storage.googleapis.com; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:"
|
||||
|
||||
|
||||
# jhipster-needle-add-application-yaml-document
|
||||
---
|
||||
# ===================================================================
|
||||
# Application specific properties
|
||||
# Add your own application properties here, see the ApplicationProperties class
|
||||
# to have type-safe configuration, like in the JHipsterProperties above
|
||||
#
|
||||
# More documentation is available at:
|
||||
# https://www.jhipster.tech/common-application-properties/
|
||||
# ===================================================================
|
||||
|
||||
# application:
|
||||
@@ -0,0 +1,121 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd
|
||||
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
|
||||
|
||||
<changeSet id="00000000000000" author="jhipster">
|
||||
<createSequence sequenceName="sequence_generator" startValue="1050" incrementBy="50"/>
|
||||
</changeSet>
|
||||
|
||||
<!--
|
||||
JHipster core tables.
|
||||
The initial schema has the '00000000000001' id, so that it is over-written if we re-generate it.
|
||||
-->
|
||||
<changeSet id="00000000000001" author="jhipster">
|
||||
<createTable tableName="jhi_user">
|
||||
<column name="id" type="bigint">
|
||||
<constraints primaryKey="true" nullable="false"/>
|
||||
</column>
|
||||
<column name="login" type="varchar(50)">
|
||||
<constraints unique="true" nullable="false" uniqueConstraintName="ux_user_login"/>
|
||||
</column>
|
||||
<column name="password_hash" type="varchar(60)"/>
|
||||
<column name="first_name" type="varchar(50)"/>
|
||||
<column name="last_name" type="varchar(50)"/>
|
||||
<column name="email" type="varchar(191)">
|
||||
<constraints unique="true" nullable="true" uniqueConstraintName="ux_user_email"/>
|
||||
</column>
|
||||
<column name="image_url" type="varchar(256)"/>
|
||||
<column name="activated" type="boolean" valueBoolean="false">
|
||||
<constraints nullable="false" />
|
||||
</column>
|
||||
<column name="lang_key" type="varchar(10)"/>
|
||||
<column name="activation_key" type="varchar(20)"/>
|
||||
<column name="reset_key" type="varchar(20)"/>
|
||||
<column name="created_by" type="varchar(50)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="created_date" type="timestamp"/>
|
||||
<column name="reset_date" type="timestamp">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="last_modified_by" type="varchar(50)"/>
|
||||
<column name="last_modified_date" type="timestamp"/>
|
||||
</createTable>
|
||||
|
||||
<createTable tableName="jhi_authority">
|
||||
<column name="name" type="varchar(50)">
|
||||
<constraints primaryKey="true" nullable="false"/>
|
||||
</column>
|
||||
</createTable>
|
||||
|
||||
<createTable tableName="jhi_user_authority">
|
||||
<column name="user_id" type="bigint">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="authority_name" type="varchar(50)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
</createTable>
|
||||
|
||||
<addPrimaryKey columnNames="user_id, authority_name" tableName="jhi_user_authority"/>
|
||||
|
||||
<addForeignKeyConstraint baseColumnNames="authority_name"
|
||||
baseTableName="jhi_user_authority"
|
||||
constraintName="fk_authority_name"
|
||||
referencedColumnNames="name"
|
||||
referencedTableName="jhi_authority"/>
|
||||
|
||||
<addForeignKeyConstraint baseColumnNames="user_id"
|
||||
baseTableName="jhi_user_authority"
|
||||
constraintName="fk_user_id"
|
||||
referencedColumnNames="id"
|
||||
referencedTableName="jhi_user"/>
|
||||
|
||||
<addNotNullConstraint columnName="password_hash"
|
||||
columnDataType="varchar(60)"
|
||||
tableName="jhi_user"/>
|
||||
<loadData
|
||||
file="config/liquibase/data/authority.csv"
|
||||
separator=";"
|
||||
tableName="jhi_authority"
|
||||
usePreparedStatements="true">
|
||||
<column name="name" type="string"/>
|
||||
</loadData>
|
||||
<loadData
|
||||
file="config/liquibase/data/user.csv"
|
||||
separator=";"
|
||||
tableName="jhi_user"
|
||||
usePreparedStatements="true">
|
||||
<column name="id" type="numeric"/>
|
||||
<column name="activated" type="boolean"/>
|
||||
<column name="created_date" type="timestamp"/>
|
||||
</loadData>
|
||||
<loadData
|
||||
file="config/liquibase/data/user_authority.csv"
|
||||
separator=";"
|
||||
tableName="jhi_user_authority"
|
||||
usePreparedStatements="true">
|
||||
<column name="user_id" type="numeric"/>
|
||||
</loadData>
|
||||
<dropDefaultValue tableName="jhi_user" columnName="created_date" columnDataType="${datetimeType}"/>
|
||||
</changeSet>
|
||||
|
||||
<changeSet author="jhipster" id="00000000000002" context="test">
|
||||
<createTable tableName="jhi_date_time_wrapper">
|
||||
<column name="id" type="BIGINT">
|
||||
<constraints primaryKey="true" primaryKeyName="jhi_date_time_wrapperPK"/>
|
||||
</column>
|
||||
<column name="instant" type="timestamp"/>
|
||||
<column name="local_date_time" type="timestamp"/>
|
||||
<column name="offset_date_time" type="timestamp"/>
|
||||
<column name="zoned_date_time" type="timestamp"/>
|
||||
<column name="local_time" type="time"/>
|
||||
<column name="offset_time" type="time"/>
|
||||
<column name="local_date" type="date"/>
|
||||
</createTable>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
||||
@@ -0,0 +1,3 @@
|
||||
name
|
||||
ROLE_ADMIN
|
||||
ROLE_USER
|
||||
|
@@ -0,0 +1,3 @@
|
||||
id;login;password_hash;first_name;last_name;email;image_url;activated;lang_key;created_by;last_modified_by
|
||||
1;admin;$2a$10$gSAhZrxMllrbgj/kkK9UceBPpChGWJA7SYIb1Mqo.n5aNLq1/oRrC;Administrator;Administrator;admin@localhost;;true;en;system;system
|
||||
2;user;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;User;User;user@localhost;;true;en;system;system
|
||||
|
@@ -0,0 +1,4 @@
|
||||
user_id;authority_name
|
||||
1;ROLE_ADMIN
|
||||
1;ROLE_USER
|
||||
2;ROLE_USER
|
||||
|
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
|
||||
<property name="now" value="current_timestamp" dbms="postgresql"/>
|
||||
<property name="floatType" value="float4" dbms="postgresql"/>
|
||||
<property name="clobType" value="clob" dbms="postgresql"/>
|
||||
<property name="blobType" value="blob" dbms="postgresql"/>
|
||||
<property name="uuidType" value="uuid" dbms="postgresql"/>
|
||||
<property name="datetimeType" value="datetime" dbms="postgresql"/>
|
||||
<property name="timeType" value="time(6)" dbms="postgresql"/>
|
||||
|
||||
<include file="config/liquibase/changelog/00000000000000_initial_schema.xml" relativeToChangelogFile="false"/>
|
||||
<!-- jhipster-needle-liquibase-add-changelog - JHipster will add liquibase changelogs here -->
|
||||
<!-- jhipster-needle-liquibase-add-constraints-changelog - JHipster will add liquibase constraints changelogs here -->
|
||||
<!-- jhipster-needle-liquibase-add-incremental-changelog - JHipster will add incremental liquibase changelogs here -->
|
||||
</databaseChangeLog>
|
||||
Binary file not shown.
@@ -0,0 +1,21 @@
|
||||
# Error page
|
||||
error.title=Your request cannot be processed
|
||||
error.subtitle=Sorry, an error has occurred.
|
||||
error.status=Status:
|
||||
error.message=Message:
|
||||
|
||||
# Activation email
|
||||
email.activation.title=questionBank account activation
|
||||
email.activation.greeting=Dear {0}
|
||||
email.activation.text1=Your questionBank account has been created, please click on the URL below to activate it:
|
||||
email.activation.text2=Regards,
|
||||
email.signature=questionBank Team.
|
||||
|
||||
# Creation email
|
||||
email.creation.text1=Your questionBank account has been created, please click on the URL below to access it:
|
||||
|
||||
# Reset email
|
||||
email.reset.title=questionBank password reset
|
||||
email.reset.greeting=Dear {0}
|
||||
email.reset.text1=For your questionBank account a password reset was requested, please click on the URL below to reset it:
|
||||
email.reset.text2=Regards,
|
||||
@@ -0,0 +1,21 @@
|
||||
# Error page
|
||||
error.title=Your request cannot be processed
|
||||
error.subtitle=Sorry, an error has occurred.
|
||||
error.status=Status:
|
||||
error.message=Message:
|
||||
|
||||
# Activation email
|
||||
email.activation.title=questionBank account activation
|
||||
email.activation.greeting=Dear {0}
|
||||
email.activation.text1=Your questionBank account has been created, please click on the URL below to activate it:
|
||||
email.activation.text2=Regards,
|
||||
email.signature=questionBank Team.
|
||||
|
||||
# Creation email
|
||||
email.creation.text1=Your questionBank account has been created, please click on the URL below to access it:
|
||||
|
||||
# Reset email
|
||||
email.reset.title=questionBank password reset
|
||||
email.reset.greeting=Dear {0}
|
||||
email.reset.text1=For your questionBank account a password reset was requested, please click on the URL below to reset it:
|
||||
email.reset.text2=Regards,
|
||||
@@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE configuration>
|
||||
|
||||
<configuration scan="true">
|
||||
<!-- Patterns based on https://github.com/spring-projects/spring-boot/blob/v3.0.0/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/logback/defaults.xml -->
|
||||
<conversionRule conversionWord="crlf" converterClass="com.example.questionbank.config.CRLFLogConverter" />
|
||||
<property name="CONSOLE_LOG_PATTERN" value="${CONSOLE_LOG_PATTERN:-%clr(%d{${LOG_DATEFORMAT_PATTERN:-yyyy-MM-dd'T'HH:mm:ss.SSSXXX}}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %crlf(%m){red} %n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/>
|
||||
<!-- The FILE and ASYNC appenders are here as examples for a production configuration -->
|
||||
<!--
|
||||
<property name="FILE_LOG_PATTERN" value="${FILE_LOG_PATTERN:-%d{${LOG_DATEFORMAT_PATTERN:-yyyy-MM-dd'T'HH:mm:ss.SSSXXX}} ${LOG_LEVEL_PATTERN:-%5p} ${PID:- } --- [%t] %-40.40logger{39} : %crlf(%m) %n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/>
|
||||
-->
|
||||
|
||||
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
|
||||
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />
|
||||
|
||||
<!-- The FILE and ASYNC appenders are here as examples for a production configuration -->
|
||||
<!--
|
||||
<include resource="org/springframework/boot/logging/logback/file-appender.xml" />
|
||||
|
||||
<appender name="ASYNC" class="ch.qos.logback.classic.AsyncAppender">
|
||||
<queueSize>512</queueSize>
|
||||
<appender-ref ref="FILE"/>
|
||||
</appender>
|
||||
|
||||
<root level="${logging.level.root}">
|
||||
<appender-ref ref="ASYNC"/>
|
||||
</root>
|
||||
-->
|
||||
|
||||
<logger name="com.example.questionbank" level="INFO"/>
|
||||
|
||||
<logger name="angus.activation" level="WARN"/>
|
||||
<logger name="jakarta.activation" level="WARN"/>
|
||||
<logger name="jakarta.mail" level="WARN"/>
|
||||
<logger name="jakarta.management.remote" level="WARN"/>
|
||||
<logger name="jakarta.xml.bind" level="WARN"/>
|
||||
<logger name="jdk.event.security" level="INFO"/>
|
||||
<logger name="com.ryantenney" level="WARN"/>
|
||||
<logger name="com.sun" level="WARN"/>
|
||||
<logger name="com.zaxxer" level="WARN"/>
|
||||
<logger name="org.apache" level="WARN"/>
|
||||
<logger name="org.apache.catalina.startup.DigesterFactory" level="OFF"/>
|
||||
<logger name="org.bson" level="WARN"/>
|
||||
<logger name="org.hibernate.validator" level="WARN"/>
|
||||
<logger name="org.hibernate" level="WARN"/>
|
||||
<logger name="org.hibernate.ejb.HibernatePersistence" level="OFF"/>
|
||||
<logger name="org.postgresql" level="WARN"/>
|
||||
<logger name="org.springframework" level="WARN"/>
|
||||
<logger name="org.springframework.web" level="WARN"/>
|
||||
<logger name="org.springframework.security" level="WARN"/>
|
||||
<logger name="org.springframework.boot.autoconfigure.logging" level="INFO"/>
|
||||
<logger name="org.springframework.cache" level="WARN"/>
|
||||
<logger name="org.thymeleaf" level="WARN"/>
|
||||
<logger name="org.xnio" level="WARN"/>
|
||||
<logger name="io.swagger.v3" level="INFO"/>
|
||||
<logger name="sun.rmi" level="WARN"/>
|
||||
<logger name="sun.rmi.transport" level="WARN"/>
|
||||
<!-- See https://github.com/jhipster/generator-jhipster/issues/13835 -->
|
||||
<logger name="Validator" level="INFO"/>
|
||||
<!-- See https://github.com/jhipster/generator-jhipster/issues/14444 -->
|
||||
<logger name="_org.springframework.web.servlet.HandlerMapping.Mappings" level="INFO"/>
|
||||
<logger name="org.springframework.boot.docker" level="WARN"/>
|
||||
<logger name="liquibase" level="WARN"/>
|
||||
<logger name="LiquibaseSchemaResolver" level="INFO"/>
|
||||
<!-- jhipster-needle-logback-add-log - JHipster will add a new log with level -->
|
||||
|
||||
<springProperty name="log.level" source="logging.level.root" defaultValue="INFO" />
|
||||
<root level="${log.level}">
|
||||
<appender-ref ref="CONSOLE" />
|
||||
</root>
|
||||
|
||||
<!-- Prevent logback from outputting its own status -->
|
||||
<statusListener class="ch.qos.logback.core.status.NopStatusListener"/>
|
||||
<!-- Reset the JUL logging level to avoid conflicts with Logback -->
|
||||
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
|
||||
<resetJUL>true</resetJUL>
|
||||
</contextListener>
|
||||
|
||||
</configuration>
|
||||
@@ -0,0 +1,94 @@
|
||||
<!doctype html>
|
||||
<html
|
||||
xmlns:th="http://www.thymeleaf.org"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.thymeleaf.org"
|
||||
th:lang="${#locale.language}"
|
||||
lang="en"
|
||||
>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<link rel="icon" href="${baseUrl}/favicon.ico" />
|
||||
<title>Your request cannot be processed</title>
|
||||
<style>
|
||||
::-moz-selection {
|
||||
background: #b3d4fc;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: #b3d4fc;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
html {
|
||||
padding: 30px 10px;
|
||||
font-size: 20px;
|
||||
line-height: 1.4;
|
||||
background: #3e8acc;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
html,
|
||||
input {
|
||||
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
max-width: 1000px;
|
||||
_width: 500px;
|
||||
padding: 30px 20px 50px;
|
||||
border: 1px solid #b3b3b3;
|
||||
border-radius: 4px;
|
||||
margin: 0 auto;
|
||||
box-shadow:
|
||||
0 1px 10px #a7a7a7,
|
||||
inset 0 1px 0 #fff;
|
||||
background: #fcfcfc;
|
||||
color: #3d3d3d;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0 10px;
|
||||
font-size: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h1 span {
|
||||
color: #575757;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: 1.5em 0 0.5em;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 0 0 0 40px;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 800px;
|
||||
_width: 380px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1 th:text="#{error.title}">Your request cannot be processed <span>:(</span></h1>
|
||||
|
||||
<p th:text="#{error.subtitle}">Sorry, an error has occurred.</p>
|
||||
|
||||
<span th:text="#{error.status}">Status:</span> <span th:text="${error}"></span> (<span th:text="${error}"></span>)<br />
|
||||
<span th:if="${!#strings.isEmpty(message)}">
|
||||
<span th:text="#{error.message}">Message:</span> <span th:text="${message}"></span><br />
|
||||
</span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,20 @@
|
||||
<!doctype html>
|
||||
<html xmlns:th="http://www.thymeleaf.org" th:lang="${#locale.language}" lang="en">
|
||||
<head>
|
||||
<title th:text="#{email.activation.title}">JHipster activation</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<link rel="icon" th:href="@{|${baseUrl}/favicon.ico|}" />
|
||||
</head>
|
||||
<body>
|
||||
<p th:text="#{email.activation.greeting(${user.login})}">Dear</p>
|
||||
<p th:text="#{email.activation.text1}">Your JHipster account has been created, please click on the URL below to activate it:</p>
|
||||
<p>
|
||||
<a th:with="url=(@{|${baseUrl}/account/activate?key=${user.activationKey}|})" th:href="${url}" th:text="${url}">Activation link</a>
|
||||
</p>
|
||||
<p>
|
||||
<span th:text="#{email.activation.text2}">Regards, </span>
|
||||
<br />
|
||||
<em th:text="#{email.signature}">JHipster.</em>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,20 @@
|
||||
<!doctype html>
|
||||
<html xmlns:th="http://www.thymeleaf.org" th:lang="${#locale.language}" lang="en">
|
||||
<head>
|
||||
<title th:text="#{email.activation.title}">JHipster creation</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<link rel="icon" th:href="@{|${baseUrl}/favicon.ico|}" />
|
||||
</head>
|
||||
<body>
|
||||
<p th:text="#{email.activation.greeting(${user.login})}">Dear</p>
|
||||
<p th:text="#{email.creation.text1}">Your JHipster account has been created, please click on the URL below to access it:</p>
|
||||
<p>
|
||||
<a th:with="url=(@{|${baseUrl}/account/reset/finish?key=${user.resetKey}|})" th:href="${url}" th:text="${url}">Login link</a>
|
||||
</p>
|
||||
<p>
|
||||
<span th:text="#{email.activation.text2}">Regards, </span>
|
||||
<br />
|
||||
<em th:text="#{email.signature}">JHipster.</em>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,22 @@
|
||||
<!doctype html>
|
||||
<html xmlns:th="http://www.thymeleaf.org" th:lang="${#locale.language}" lang="en">
|
||||
<head>
|
||||
<title th:text="#{email.reset.title}">JHipster password reset</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<link rel="icon" th:href="@{|${baseUrl}/favicon.ico|}" />
|
||||
</head>
|
||||
<body>
|
||||
<p th:text="#{email.reset.greeting(${user.login})}">Dear</p>
|
||||
<p th:text="#{email.reset.text1}">
|
||||
For your JHipster account a password reset was requested, please click on the URL below to reset it:
|
||||
</p>
|
||||
<p>
|
||||
<a th:with="url=(@{|${baseUrl}/account/reset/finish?key=${user.resetKey}|})" th:href="${url}" th:text="${url}">Login link</a>
|
||||
</p>
|
||||
<p>
|
||||
<span th:text="#{email.reset.text2}">Regards, </span>
|
||||
<br />
|
||||
<em th:text="#{email.signature}">JHipster.</em>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user