File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11server :
2- port : 8084 # App Service default port
2+ port : 8084
33
44spring :
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
3635jwt :
3736 secret : ${JWT_SECRET}
38- expiration : 86400000 # 24 Hours
37+ expiration : 86400000
3938
4039# File Upload Configuration
4140app :
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
4745logging :
4846 level :
4947 root : WARN
You can’t perform that action at this time.
0 commit comments