Ignore:
Timestamp:
08/30/24 15:44:27 (2 months ago)
Author:
223021 <daniel.ilievski.2@…>
Branches:
main
Parents:
0f0add0
Message:

Implemented Google login, additional file uploads, response messages and email notifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jobvista-backend/src/main/resources/application.properties

    r0f0add0 r4d97b63  
    22
    33spring.datasource.driver-class-name=org.postgresql.Driver
    4 spring.datasource.url=jdbc:postgresql://localhost:5432/jobvistaDB
    5 spring.datasource.username=postgres
    6 spring.datasource.password=postgres
     4spring.datasource.url=${db_url}
     5spring.datasource.username=${db_username}
     6spring.datasource.password=${db_password}
    77
    88#spring.jpa.hibernate.ddl-auto=create-drop
     
    1212spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
    1313
    14 file.upload-dir=./uploads
     14file.upload-dir=${file_upload_dir}
    1515
    1616spring.servlet.multipart.enabled=true
    1717spring.servlet.multipart.max-file-size=2MB
    1818spring.servlet.multipart.max-request-size=2MB
     19
     20spring.security.oauth2.client.registration.google.client-id=${google_id}
     21spring.security.oauth2.client.registration.google.client-secret=${google_secret}
     22spring.security.oauth2.client.registration.google.scope=profile, email
     23spring.security.oauth2.client.registration.google.redirect-uri=http://localhost:3000/login/oauth2/code/google
     24spring.security.oauth2.client.provider.google.authorization-uri=https://accounts.google.com/o/oauth2/auth
     25spring.security.oauth2.client.provider.google.token-uri=https://oauth2.googleapis.com/token
     26spring.security.oauth2.client.provider.google.user-info-uri=https://www.googleapis.com/oauth2/v3/userinfo
     27spring.security.oauth2.client.provider.google.user-name-attribute=sub
     28
     29spring.mail.host=smtp.gmail.com
     30spring.mail.port=587
     31spring.mail.username=${mail_username}
     32spring.mail.password=${mail_password}
     33custom.mail.sender.email=${mail_sender_email}
     34custom.mail.sender.name=${mail_sender_name}
     35spring.mail.properties.mail.smtp.auth=true
     36spring.mail.properties.mail.smtp.starttls.enable=true
     37
     38
Note: See TracChangeset for help on using the changeset viewer.