Skip to content

Commit 1078750

Browse files
committed
Remove application.yml from .gitignore and add configuration file for application settings
1 parent a68c450 commit 1078750

File tree

2 files changed

+67
-2
lines changed

2 files changed

+67
-2
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,3 @@ out/
3636
### VS Code ###
3737
.vscode/
3838

39-
### Secrets ###
40-
src/main/resources/config/application.yml
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
spring:
2+
datasource:
3+
url: jdbc:postgresql://localhost:5432/harmonia
4+
username: postgres
5+
password: harmonia
6+
driver-class-name: org.postgresql.Driver
7+
8+
jpa:
9+
open-in-view: false
10+
show-sql: false
11+
hibernate:
12+
ddl-auto: validate
13+
naming:
14+
physical-strategy: org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy
15+
implicit-strategy: org.springframework.boot.hibernate.SpringImplicitNamingStrategy
16+
properties:
17+
hibernate:
18+
format_sql: true
19+
dialect: org.hibernate.dialect.PostgreSQLDialect
20+
21+
liquibase:
22+
enabled: true
23+
change-log: classpath:db/changelog/db.changelog-master.xml
24+
25+
ai:
26+
azure:
27+
openai:
28+
api-key: <openai_key>
29+
# open-ai-api-key: <openai_key> # Fallback OpenAI key if needed, sets endpoint automatically
30+
endpoint: https://ase-se01.openai.azure.com/
31+
# deployment-name should match the Azure OpenAI deployment
32+
chat:
33+
options:
34+
deployment-name: gpt-5-mini
35+
# Some Azure/OpenAI deployments (e.g., gpt-5-mini) only support the default temperature (1.0)
36+
temperature: 1.0
37+
38+
logging:
39+
level:
40+
org.springframework: INFO
41+
42+
management:
43+
endpoints:
44+
web:
45+
exposure:
46+
include: health
47+
endpoint:
48+
health:
49+
show-details: when-authorized
50+
51+
harmonia:
52+
user: admin
53+
password: admin1234
54+
cors:
55+
allowed-origins:
56+
- "http://localhost:5173"
57+
- "http://localhost:3000"
58+
- "http://localhost:8080"
59+
60+
artemis:
61+
baseUrl:
62+
username:
63+
password:
64+
jwtToken:
65+
exerciseId: 424
66+
gitRepoPath: Projects/itp2425teamprojects
67+
numThreads: 8

0 commit comments

Comments
 (0)