mirror of
https://github.com/ArenMg/aren.git
synced 2024-11-24 09:28:03 +00:00
move config files inside config folder
This commit is contained in:
parent
766ecf575d
commit
b4ff87a593
2 changed files with 101 additions and 0 deletions
59
config/application.properties
Normal file
59
config/application.properties
Normal file
|
@ -0,0 +1,59 @@
|
|||
# Change the production mode to alter some logging in the application
|
||||
# On the client side, if set as true, the javascript and css loaded will be the minified ones
|
||||
production = false
|
||||
|
||||
# If you are behind a reverse proxy, write here the end user root url
|
||||
# Example : http://aren.my_company.fr/app
|
||||
reverse-proxy =
|
||||
|
||||
# A unique identification of you web server. Used for remote requets
|
||||
# Example : My_Institution
|
||||
plateform.id =
|
||||
|
||||
# Secret use for the creation of JWT token
|
||||
authentication.jwt.secret =
|
||||
|
||||
# Issuer for the JWT token
|
||||
# Example : my_domain.name
|
||||
authentication.jwt.issuer =
|
||||
|
||||
# Audience for the JWT token
|
||||
# Example : my_domain.name
|
||||
authentication.jwt.audience =
|
||||
|
||||
# Validation time for the JWT tokens, in seconds
|
||||
# Default is one year
|
||||
authentication.jwt.validFor = 31536000
|
||||
|
||||
# Other configuration for JWT token, don't change if you don't know what you do
|
||||
authentication.jwt.clockSkew = 10
|
||||
authentication.jwt.claimNames.authorities = authorities
|
||||
authentication.jwt.claimNames.refreshCount = refreshCount
|
||||
authentication.jwt.claimNames.refreshLimit = refreshLimit
|
||||
|
||||
# SMTP configuration
|
||||
# String
|
||||
smtp.server =
|
||||
# Boolean
|
||||
smtp.auth =
|
||||
# Int
|
||||
smtp.port =
|
||||
# Boolean
|
||||
smtp.tls =
|
||||
# String
|
||||
smtp.username =
|
||||
# String
|
||||
smtp.password =
|
||||
|
||||
# ENT conexion configuration
|
||||
# Example : https://cas.mon-ent-occitanie.fr/login
|
||||
cas.url =
|
||||
|
||||
# AREN tools
|
||||
# The Python scalar server
|
||||
scalar.url =
|
||||
# The python theme server
|
||||
theme.url =
|
||||
|
||||
# Remote tool configuration
|
||||
idefix.url = http://www.jeuxdemots.org/intern_extract.php
|
42
config/persistence.xml
Normal file
42
config/persistence.xml
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
|
||||
<persistence-unit name="default" transaction-type="RESOURCE_LOCAL">
|
||||
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
|
||||
<properties>
|
||||
<!-- Connection information -->
|
||||
<property name="hibernate.connection.driver_class" value="org.postgresql.Driver"/>
|
||||
<property name="hibernate.connection.url" value="jdbc:postgresql://localhost:5432/db_name"/>
|
||||
<property name="hibernate.connection.username" value="db_user"/>
|
||||
<property name="hibernate.connection.password" value="db_password"/>
|
||||
<property name="hibernate.default_schema" value="public"/>
|
||||
<!-- SQL and DB config -->
|
||||
<property name="hibernate.generate_statistics" value="false"/>
|
||||
<property name="hibernate.format_sql" value="true"/>
|
||||
<property name="hibernate.show_sql" value="false"/>
|
||||
<property name="hibernate.use_sql_comments" value="false"/>
|
||||
<property name="hibernate.transaction.factory_class" value="org.hibernate.transaction.JDBCTransactionFactory"/>
|
||||
<property name="hibernate.current_session_context_class" value="thread"/>
|
||||
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
|
||||
<property name="hibernate.jdbc.batch_size" value="30"/>
|
||||
<property name="hibernate.jdbc.batch_versioned_data" value="true"/>
|
||||
|
||||
<!-- DB inititialization -->
|
||||
<!--property name="hibernate.hbm2ddl.auto" value="drop-and-create"/-->
|
||||
<!--property name="hibernate.hbm2ddl.import_files" value="META-INF/init.sql"/-->
|
||||
|
||||
<!-- Pool configuration -->
|
||||
<property name="connection.provider_class" value="org.hibernate.connection.C3P0ConnectionProvider"/>
|
||||
<property name="hibernate.c3p0.acquire_increment" value="5"/>
|
||||
<property name="hibernate.c3p0.idle_test_period" value="60"/>
|
||||
<property name="hibernate.c3p0.min_size" value="5"/>
|
||||
<property name="hibernate.c3p0.max_size" value="20"/>
|
||||
<property name="hibernate.c3p0.max_statements" value="50"/>
|
||||
<property name="hibernate.c3p0.timeout" value="0"/>
|
||||
<property name="hibernate.c3p0.acquireRetryAttempts" value="1"/>
|
||||
<property name="hibernate.c3p0.acquireRetryDelay" value="250"/>
|
||||
<property name="hibernate.c3p0.maxIdleTime" value="3000"/>
|
||||
</properties>
|
||||
</persistence-unit>
|
||||
</persistence>
|
Loading…
Reference in a new issue