-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from tillias/dev
Dev
- Loading branch information
Showing
5 changed files
with
144 additions
and
30 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/main/java/com/github/microcatalog/config/CSPProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.github.microcatalog.config; | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
|
||
@ConfigurationProperties(prefix = "csp", ignoreUnknownFields = false) | ||
public class CSPProperties { | ||
private String imageSrc = "'self' data:"; | ||
|
||
public CSPProperties() { | ||
} | ||
|
||
public String getImageSrc() { | ||
return imageSrc; | ||
} | ||
|
||
public void setImageSrc(String imageSrc) { | ||
this.imageSrc = imageSrc; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# =================================================================== | ||
# Spring Boot configuration for the "heroku" profile. | ||
# | ||
# This configuration overrides the application.yml file. | ||
# =================================================================== | ||
|
||
# =================================================================== | ||
# Standard Spring Boot properties. | ||
# Full reference is available at: | ||
# http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html | ||
# =================================================================== | ||
|
||
spring: | ||
liquibase: | ||
enabled: false | ||
datasource: | ||
type: com.zaxxer.hikari.HikariDataSource | ||
driver-class-name: org.postgresql.Driver | ||
url: ${JDBC_DATABASE_URL} | ||
username: ${JDBC_DATABASE_USERNAME} | ||
password: ${JDBC_DATABASE_PASSWORD} | ||
hikari: | ||
poolName: Hikari | ||
auto-commit: false | ||
jpa: | ||
database-platform: io.github.jhipster.domain.util.FixedPostgreSQL10Dialect | ||
show-sql: false | ||
h2: | ||
console: | ||
enabled: false | ||
mail: | ||
host: localhost | ||
port: 25 | ||
username: | ||
password: | ||
thymeleaf: | ||
cache: true | ||
|
||
server: | ||
port: 8080 | ||
compression: | ||
enabled: true | ||
mime-types: text/html,text/xml,text/plain,text/css, application/javascript, application/json | ||
min-response-size: 1024 | ||
|
||
jhipster: | ||
http: | ||
cache: # Used by the CachingHttpHeadersFilter | ||
timeToLiveInDays: 1461 | ||
cache: # Cache configuration | ||
ehcache: # Ehcache configuration | ||
time-to-live-seconds: 3600 # By default objects stay 1 hour in the cache | ||
max-entries: 1000 # Number of objects in each cache entry | ||
security: | ||
authentication: | ||
jwt: | ||
# This token must be encoded using Base64 and be at least 256 bits long (you can type `openssl rand -base64 64` on your command line to generate a 512 bits one) | ||
# As this is the PRODUCTION configuration, you MUST change the default key, and store it securely: | ||
# - In the JHipster Registry (which includes a Spring Cloud Config server) | ||
# - In a separate `application-prod.yml` file, in the same folder as your executable JAR file | ||
# - In the `JHIPSTER_SECURITY_AUTHENTICATION_JWT_BASE64_SECRET` environment variable | ||
base64-secret: YzljOTRhYTYwMDkwM2RhYjIxOGU2MTNjMDRjMDIyMjJjNjUyMzlmNzM5MjU1MzY3ZDI4NWFkY2YxNTM1YmI3N2EyZjRiNGE3OGZlYzcxNjJkYmRiNDNlNGFjYzI2YWZjMWNiYzI3NjE1NmVlMWJhMWVjNzZhNzhhNDY4Yzg0MzA= | ||
# 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 | ||
metrics: | ||
logs: # Reports metrics in the logs | ||
enabled: false | ||
report-frequency: 60 # in seconds | ||
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 | ||
queue-size: 512 | ||
audit-events: | ||
retention-period: 30 # Number of days before audit events are deleted. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters