source: backend/env@ 140d098

Last change on this file since 140d098 was 140d098, checked in by Andrej <asumanovski@…>, 5 months ago

Add auth

  • Property mode set to 100644
File size: 2.1 KB
Line 
1# ============================================
2# REQUIRED FOR STARTUP - Database Connection
3# ============================================
4# PostgreSQL connection parameters
5# Make sure your SSH tunnel is running (tunnel_scripta.sh) before starting the app
6SPRING_DATASOURCE_URL=jdbc:postgresql://localhost:9999/db_202526z_va_prj_trekr
7SPRING_DATASOURCE_USERNAME=db_202526z_va_prj_trekr_owner
8SPRING_DATASOURCE_PASSWORD=39ee816617c3
9
10# ============================================
11# REQUIRED FOR STARTUP - JWT Secret Key
12# ============================================
13# Used for signing/verifying JWT tokens in authentication
14# Generate a secure random string (at least 256 bits/32 characters)
15# For development, you can use this temporary value, but CHANGE IT in production!
16# To generate: openssl rand -base64 32
17JWT_CONFIG_SECRET=dev-temporary-secret-key-change-in-production-min-32-chars
18
19# ============================================
20# OPTIONAL - AWS S3 (File Storage)
21# ============================================
22# Only needed if you're storing files/images in AWS S3
23# Get these from: AWS Console -> IAM -> Users -> Create Access Key
24# Or: AWS Console -> S3 -> Your Bucket -> Properties
25AWS_S3_REGION=
26AWS_S3_BUCKET_NAME=
27AWS_S3_ACCESS_KEY=
28AWS_S3_SECRET_KEY=
29
30# ============================================
31# OPTIONAL - Email Service (SMTP)
32# ============================================
33# Only needed if you're sending emails (password reset, notifications, etc.)
34# Options:
35# - Gmail: smtp.gmail.com, port 587
36# - Outlook: smtp-mail.outlook.com, port 587
37# - SendGrid: smtp.sendgrid.net, port 587
38# - Mailtrap (testing): smtp.mailtrap.io, port 2525
39EMAIL_HOST=
40EMAIL_PORT=
41EMAIL_USERNAME=
42EMAIL_PASSWORD=
43
44# ============================================
45# OPTIONAL - Google OAuth (Social Login)
46# ============================================
47# Only needed if you want users to sign in with Google
48# Get these from: https://console.cloud.google.com/
49# 1. Create a project
50# 2. Enable Google+ API
51# 3. Create OAuth 2.0 credentials
52# 4. Add authorized redirect URI: http://localhost:8080/login/oauth2/code/google
53GOOGLE_CLIENT_ID=
54GOOGLE_CLIENT_SECRET=
Note: See TracBrowser for help on using the repository browser.