Skip to content

Commit 3fecf5f

Browse files
authored
Update application-azure.yml
1 parent 626dfb8 commit 3fecf5f

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

src/main/resources/application-azure.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
server:
2-
port: 8084 # App Service default port
2+
port: 8084
33

44
spring:
55
application:
66
name: Defect-management
77

88
datasource:
9-
# These variables MUST be set in Azure App Service -> Configuration
109
url: jdbc:postgresql://${DB_HOST}:5432/${DB_NAME}?sslmode=require
1110
username: ${DB_USER}
1211
password: ${DB_PASSWORD}
@@ -17,33 +16,32 @@ spring:
1716
ddl-auto: update
1817
database-platform: org.hibernate.dialect.PostgreSQLDialect
1918
show-sql: false
20-
# Ensures tables are created before data.sql runs
2119
defer-datasource-initialization: true
2220

2321
sql:
2422
init:
25-
# This ensures your data.sql (with the users) runs on startup
2623
mode: always
2724

25+
# --- MULTIPART CONFIGURATION ---
2826
servlet:
2927
multipart:
3028
enabled: true
3129
max-file-size: 10MB
3230
max-request-size: 10MB
31+
# Use /home/site/tmp for persistence across restarts in Azure
32+
location: /home/site/tmp
3333

3434
# JWT Configuration
35-
# Matches your @Value("${jwt.secret}") in JwtUtil.java
3635
jwt:
3736
secret: ${JWT_SECRET}
38-
expiration: 86400000 # 24 Hours
37+
expiration: 86400000
3938

4039
# File Upload Configuration
4140
app:
4241
upload:
4342
# /home is the ONLY persistent storage in Azure App Service Linux
44-
dir: /home/uploads
43+
dir: /home/site/wwwroot/uploads
4544

46-
# Logging refinement for production
4745
logging:
4846
level:
4947
root: WARN

0 commit comments

Comments
 (0)