Initial commit
This commit is contained in:
85
src/main/resources/application.properties
Normal file
85
src/main/resources/application.properties
Normal file
@@ -0,0 +1,85 @@
|
||||
# Firestore Configuration Properties
|
||||
# --------------------------------
|
||||
|
||||
# Project ID Configuration
|
||||
# Use this setting if you want to manually specify a GCP Project instead of inferring
|
||||
# from your machine's environment.
|
||||
spring.cloud.gcp.firestore.project-id=app-jovenes
|
||||
|
||||
# Credentials Configuration
|
||||
# Use this setting if you want to manually specify service account credentials instead of inferring
|
||||
# from the machine's environment for firestore.
|
||||
#spring.cloud.gcp.firestore.credentials.location=file:{PATH_TO_YOUR_CREDENTIALS_FILE}
|
||||
|
||||
# Firestore Emulator Configuration (for local development)
|
||||
#spring.cloud.gcp.firestore.emulator-host=localhost:8080
|
||||
spring.cloud.gcp.firestore.emulator.enabled=false
|
||||
|
||||
# Firestore Database Configuration
|
||||
# ------------------------------------------
|
||||
spring.cloud.gcp.firestore.database-id=app-jovenes-cache-database
|
||||
spring.cloud.gcp.firestore.host=firestore.googleapis.com
|
||||
spring.cloud.gcp.firestore.port=443
|
||||
|
||||
# Memorystore (Redis) Configuration Properties
|
||||
# ------------------------------------------
|
||||
|
||||
# Basic Connection Settings
|
||||
#Secret Manager recomendation for credentials
|
||||
spring.data.redis.host=10.241.0.11
|
||||
spring.data.redis.port=6379
|
||||
#spring.data.redis.password=23cb4c76-9d96-4c74-b8c0-778fb364877a
|
||||
#spring.data.redis.username=default
|
||||
|
||||
# Connection Pool Settings
|
||||
# spring.data.redis.lettuce.pool.max-active=8
|
||||
# spring.data.redis.lettuce.pool.max-idle=8
|
||||
# spring.data.redis.lettuce.pool.min-idle=0
|
||||
# spring.data.redis.lettuce.pool.max-wait=-1ms
|
||||
|
||||
# SSL Configuration (if using SSL)
|
||||
# spring.data.redis.ssl=true
|
||||
# spring.data.redis.ssl.key-store=classpath:keystore.p12
|
||||
# spring.data.redis.ssl.key-store-password=your-keystore-password
|
||||
|
||||
# Timeout Settings
|
||||
# spring.data.redis.timeout=2000ms
|
||||
# spring.data.redis.lettuce.shutdown-timeout=100ms
|
||||
|
||||
# Cluster Configuration (if using Redis Cluster)
|
||||
# spring.data.redis.cluster.nodes=localhost:6379,localhost:6380,localhost:6381
|
||||
# spring.data.redis.cluster.max-redirects=3
|
||||
|
||||
# Sentinel Configuration (if using Redis Sentinel)
|
||||
# spring.data.redis.sentinel.master=mymaster
|
||||
# spring.data.redis.sentinel.nodes=localhost:26379,localhost:26380,localhost:26381
|
||||
|
||||
# Additional Redis Settings
|
||||
# spring.data.redis.database=0
|
||||
# spring.data.redis.client-type=lettuce
|
||||
# spring.data.redis.lettuce.cluster.refresh.period=1000ms
|
||||
|
||||
# Google Cloud StorageConfiguration
|
||||
# ------------------------------------------
|
||||
gcs.bucket.name=app-jovenes-bucket
|
||||
spring.cloud.gcp.project-id=app-jovenes
|
||||
|
||||
# Dialogflow CX Configuration
|
||||
# ------------------------------------------
|
||||
dialogflow.cx.project-id=app-jovenes
|
||||
dialogflow.cx.location=us-central1
|
||||
dialogflow.cx.agent-id=3b9f2354-8556-4363-9e70-fa8283582a3e
|
||||
dialogflow.default-language-code=es
|
||||
|
||||
# =========================================================
|
||||
# Google Generative AI (Gemini) Configuration
|
||||
# =========================================================
|
||||
# Your Google Cloud Project ID where the Vertex AI service is enabled.
|
||||
google.cloud.project=app-jovenes
|
||||
|
||||
# The Google Cloud region where you want to access the Gemini model.
|
||||
# Common regions: us-central1, europe-west1, asia-northeast1 etc.
|
||||
google.cloud.location=us-central1
|
||||
|
||||
# The name of the Gemini model to use for summarization.
|
||||
gemini.model.name=gemini-2.0-flash-001
|
||||
57
src/main/resources/static/index.html
Normal file
57
src/main/resources/static/index.html
Normal file
@@ -0,0 +1,57 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Spring Data Firestore Sample</title>
|
||||
</head>
|
||||
|
||||
<style>
|
||||
html * {
|
||||
font-family: Roboto, Verdana, sans-serif;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 50em;
|
||||
}
|
||||
|
||||
.panel {
|
||||
margin: 1em;
|
||||
padding: 1em;
|
||||
border: 1px solid black;
|
||||
border-radius: 5px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>Spring Data Firestore Sample</h1>
|
||||
|
||||
<div class="container">
|
||||
|
||||
<h2>Firestore Control Panel</h2>
|
||||
|
||||
<p>
|
||||
This section allows you to read User entities in Firestore.
|
||||
Some values are prefilled as an example of what you can type in.
|
||||
</p>
|
||||
|
||||
<div class="panel">
|
||||
<a href="/users">Show all users</a>
|
||||
</div>
|
||||
|
||||
<div class="panel">
|
||||
<b>Show all users with age</b>
|
||||
<form action="/users/age" method="get">
|
||||
Age: <input type="text" name="age" value="30">
|
||||
<input type="submit" value="submit">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="panel">
|
||||
<a href="https://console.cloud.google.com/firestore/data">View your Firestore data in the Cloud Console</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user