-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapplication-prod.properties
More file actions
107 lines (83 loc) · 3.84 KB
/
application-prod.properties
File metadata and controls
107 lines (83 loc) · 3.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
spring.application.name=JobTrackerPro
server.port=8080
# Database Connection
spring.datasource.url=${JDBC_URL}
spring.datasource.username=${JDBC_USER}
spring.datasource.password=${JDBC_PASS}
spring.datasource.hikari.maximum-pool-size=15
spring.datasource.hikari.minimum-idle=5
spring.datasource.hikari.connection-timeout=20000
spring.datasource.hikari.idle-timeout=600000
spring.datasource.hikari.max-lifetime=1800000
spring.datasource.hikari.pool-name=JobTrackerPro-HikariPool
spring.datasource.hikari.data-source-properties.cachePrepStmts=true
spring.datasource.hikari.data-source-properties.prepStmtCacheSize=250
spring.datasource.driver-class-name=org.postgresql.Driver
# Hibernate
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=false
spring.jpa.open-in-view=false
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.properties.hibernate.jdbc.batch_size=25
spring.jpa.properties.hibernate.order_inserts=true
spring.jpa.properties.hibernate.order_updates=true
# Gemini AI
app.gemini.enabled=true
gemini.api.key=${GEMINI_API_KEY}
gemini.api.url=https://aiplatform.googleapis.com/v1/publishers/google/models/gemini-2.5-flash-lite:generateContent
# UI url
app.ui.url=https://thughari.github.io/JobTrackerPro
# Base url
app.base-url=https://jobtracker-service-963261513098.asia-south1.run.app
spring.security.oauth2.client.registration.github.redirect-uri={baseUrl}/login/oauth2/code/github
spring.security.oauth2.client.registration.google.redirect-uri={baseUrl}/login/oauth2/code/google
# config
app.allowed.cors=https://jobtrackerpro.in
app.allowed.methods=GET,POST,PUT,DELETE,OPTIONS
app.public.endpoints=/api/auth/signup,/api/auth/login,/api/auth/refresh,/api/auth/logout,/api/auth/forgot-password,/api/auth/verify-email,/api/auth/resend-verification,/api/auth/reset-password,/oauth2/**,/api/webhooks/inbound-email,/api/webhooks/gmail/push
spring.threads.virtual.enabled=true
server.forward-headers-strategy=framework
# JWT Secret
app.jwt.secret=${JWT_SECRET}
app.jwt.expiration-ms=900000
app.jwt.refresh-secret=${JWT_REFRESH_SECRET}
# 30 days
app.jwt.refresh-expiration-ms=2592000000
app.jwt.refresh-cookie-secure=true
app.jwt.refresh-cookie-same-site=None
# File Upload Limits
spring.servlet.multipart.max-file-size=5MB
spring.servlet.multipart.max-request-size=5MB
# Google OAuth2
spring.security.oauth2.client.registration.google.client-id=${GOOGLE_CLIENT_ID}
spring.security.oauth2.client.registration.google.client-secret=${GOOGLE_CLIENT_SECRET}
spring.security.oauth2.client.registration.google.scope=email,profile
app.google.pubsub-topic=${GOOGLE_PUBSUB_TOPIC}
# Webhook Security
app.security.webhook-audience=${app.base-url}/api/webhooks/gmail/push
app.security.google-pubsub-service-account=${GOOGLE_PUBSUB_SERVICE_ACCOUNT}
# GITHUB OAuth2
spring.security.oauth2.client.registration.github.client-id=${GITHUB_CLIENT_ID}
spring.security.oauth2.client.registration.github.client-secret=${GITHUB_CLIENT_SECRET}
spring.security.oauth2.client.registration.github.scope=read:user,user:email
# Cloudflare R2 Config
app.storage.type=r2
cloudflare.r2.access-key=${CLOUDFLARE_ACCESS_KEY}
cloudflare.r2.secret-key=${CLOUDFLARE_SECRET_KEY}
cloudflare.r2.endpoint=${CLOUDFLARE_ENDPOINT}
# Cloudflare R2 Config - Avatars
cloudflare.r2.bucket.avatars=${CLOUDFLARE_AVATAR_BUCKET}
cloudflare.r2.public-url.avatars=${CLOUDFLARE_AVATAR_URL}
# Cloudflare R2 Config - Career Resources
cloudflare.r2.bucket.resources=${CLOUDFLARE_RESOURCE_BUCKET}
cloudflare.r2.public-url.resources=${CLOUDFLARE_RESOURCE_URL}
# Email Settings
spring.mail.host=${EMAIL_HOST}
spring.mail.port=${EMAIL_PORT}
spring.mail.username=${EMAIL_USER_NAME}
spring.mail.password=${EMAIL_SMTP_KEY}
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
email.sender_email=${EMAIL_SENDER}
email.sender_name=${EMAIL_SENDER_NAME}
email.sender_address=${EMAIL_SENDER_ADDRESS}