Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
shib-idp-ui/backend/src/main/resources/application.properties
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated comment
151 lines (121 sloc)
6.99 KB
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
# Server Configuration | |
#server.port=8080 | |
# Logging Configuration | |
#logging.config=classpath:log4j2.xml | |
#logging.level.org.springframework.security=INFO | |
logging.level.org.springframework=INFO | |
logging.level.edu.internet2.tier.shibboleth.admin.ui=INFO | |
spring.main.allow-bean-definition-overriding=true | |
# "In Spring MVC, the path was previously analyzed by AntPathMatcher, but it was changed to use PathPatternParser introduced in WebFlux from Spring 5.3.0." | |
# we still have the option to use ant path matcher thus keeping existing configuration from having to change | |
spring.mvc.pathmatch.matching-strategy=ant_path_matcher | |
# Database Credentials | |
spring.datasource.username=shibui | |
spring.datasource.password=shibui | |
# Database Configuration H2 | |
spring.datasource.url=jdbc:h2:mem:shibui;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE | |
spring.sql.init.platform=h2 | |
spring.datasource.driverClassName=org.h2.Driver | |
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect | |
spring.h2.console.enabled=true | |
spring.h2.console.settings.web-allow-others=true | |
# spring.jackson.default-property-inclusion=non_absent | |
spring.jackson.default-property-inclusion=NON_NULL | |
spring.jackson.mapper.accept-case-insensitive-enums=true | |
# Database Configuration PostgreSQL | |
#spring.datasource.url=jdbc:postgresql://localhost:5432/shibui | |
#spring.datasource.driverClassName=org.postgresql.Driver | |
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect | |
#Maria/MySQL DB | |
#spring.datasource.url=jdbc:mariadb://localhost:3306/shibui | |
#spring.datasource.driverClassName=org.mariadb.jdbc.Driver | |
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDBDialect | |
# Liquibase properties | |
spring.liquibase.enabled=true | |
spring.liquibase.change-log=db/changelog/changelog.xml | |
# Hibernate properties | |
# for production never ever use create, create-drop. It's BEST to use validate | |
spring.jpa.hibernate.ddl-auto=update | |
spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl | |
spring.jpa.show-sql=false | |
spring.jpa.properties.hibernate.show_sql=false | |
spring.jpa.properties.hibernate.format_sql=true | |
spring.jpa.properties.hibernate.check_nullability=true | |
spring.jpa.hibernate.use-new-id-generator-mappings=true | |
spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true | |
#spring.jpa.properties.hibernate.session.events.log.LOG_QUERIES_SLOWER_THAN_MS=800 | |
logging.level.org.hibernate.SQL_SLOW=info | |
logging.level.org.hibernate.tool.schema.internal=error | |
#### DO NOT CHANGE - ensure backward compatibility with hibernate 4 and 5 sequence DO NOT CHANGE | |
spring.jpa.properties.hibernate.id.db_structure_naming_strategy=legacy | |
#Envers versioning | |
spring.jpa.properties.org.hibernate.envers.store_data_at_delete=true | |
logging.level.org.hibernate.envers.boot=OFF | |
logging.level.org.hibernate.envers.configuration.internal.metadata=OFF | |
#Needed in the latest versions of Spring Boot when doing manual transaction management like we do in envers versioning code | |
spring.jpa.properties.hibernate.current_session_context_class=org.springframework.orm.hibernate5.SpringSessionContext | |
# Set the following property to periodically write out the generated metadata files. There is no default value; the following is just an example | |
# shibui.metadata-dir=/opt/shibboleth-idp/metadata/generated | |
shibui.logout-url=/dashboard | |
# spring.profiles.active=default | |
## Default root user can be set in application.yml or here - setting in both places can be undeterministic | |
## Default password must be set for the default user to be configured and setup | |
#shibui.default-password={noop}somepassword | |
shibui.default-rootuser=root | |
shibui.metadata-sources-saml-ui-schema-location=classpath:metadata-sources-ui-schema-saml.json | |
shibui.metadata-sources-oidc-ui-schema-location=classpath:metadata-sources-ui-schema-oidc.json | |
shibui.entity-attributes-filters-ui-schema-location=classpath:entity-attributes-filters-ui-schema.json | |
shibui.nameid-filter-ui-schema-location=classpath:nameid-filter.schema.json | |
#Actuator endpoints (info) | |
# Un-comment to get full git details exposed like author, abbreviated SHA-1, commit message | |
#management.info.git.mode=full | |
### | |
# metadata-providers.xml write configuration | |
# Set the following property to periodically write out metadata providers configuration. There is no default value; the following is just an example | |
# shibui.metadataProviders.target=file:/opt/shibboleth-idp/conf/shibui-metadata-providers.xml | |
# shibui.metadataProviders.taskRunRate=30000 | |
# Set the following property to periodically write out external metadata providers (ie metadata-filters) configuration. | |
# There is no default value; the following is just an example | |
# @see - https://shibboleth.atlassian.net/wiki/spaces/IDP4/pages/1279033515/ByReferenceFilter | |
# shibui.external.metadataProviders.target=file:/opt/shibboleth-idp/conf/metadata-filters.xml | |
# shibui.external.metadataProviders.taskRunRate=30000 | |
# Email configuration (local mailhog) | |
# spring.mail.host=mailhog | |
# spring.mail.port=1025 | |
# spring.mail.username=username | |
# spring.mail.password=password | |
# spring.mail.properties.mail.smtp.auth=false | |
# spring.mail.properties.mail.smtp.starttls.enable=false | |
shibui.mail.text-email-template-path-prefix=/mail/text/ | |
shibui.mail.html.email-template-path-prefix=/mail/html/ | |
shibui.mail.system-email-address=doNotReply@shibui.org | |
#ShibUIConfiguration slurps in these values and they are bootstrapped in on startup | |
shibui.roles=ROLE_ADMIN,ROLE_ENABLE,ROLE_USER,ROLE_NONE | |
#Authenticated access roles - used by Spring Security to allow access when authenticated | |
shibui.roles.authenticated=ADMIN,ENABLE,USER | |
#In order to enable authentication via configured pac4j library (with external SAMl Idp, for example) | |
#This property must be set to true and pac4j properties configured. For sample pac4j properties, see application.yml | |
#for an example pac4j configuration | |
shibui.pac4j-enabled=false | |
#This property must be set to true in order to enable posting stats to beacon endpoint. Furthermore, appropriate | |
#environment variables must be set for beacon publisher to be used (the ones that are set when running shib-ui in | |
#docker container | |
shibui.beacon.enabled=true | |
shibui.beacon.productName=ShibUi | |
shibui.beacon.installationID=UNICON-SHIBUI-TESTING | |
shibui.beacon.url=http://collector.testbed.tier.internet2.edu:5001 | |
#shibui.beacon.send.cron=0 59 3 * * ? | |
### Swagger/Springdoc patterns | |
springdoc.use-management-port=true | |
springdoc.swagger-ui.tagsSorter: alpha | |
springdoc.writer-with-order-by-keys: true | |
springdoc.pathsToMatch=/entities, /api/** | |
# This property enables the openapi and swagger-ui endpoints to be exposed beneath the actuator base path. | |
management.endpoints.web.exposure.include=openapi, swagger-ui, info, health | |
management.server.port=9090 | |
management.endpoints.web.cors.allowed-origins=* | |
management.endpoints.web.cors.allowed-headers=* | |
### Lucene temp dir location to use | |
shibui.lucene.dir=/var/tmp/shibui-cache | |
# When true, this will remove the validUntil attribute for an EntityDescriptor uploaded from XML source, only set to false if you want the XML uploaded as is | |
# shibui.remove.EntityDescriptor.validUntil=true |