TP-78265 | collection np access aman singh
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
ARG GOLANG_TAG=193044292705.dkr.ecr.ap-south-1.amazonaws.com/common/golang:1.19
|
ARG GOLANG_TAG=golang:1.23
|
||||||
|
|
||||||
# To run locally, use
|
# To run locally, use
|
||||||
#ARG GOLANG_TAG=registry.cmd.navi-tech.in/common/golang:1.19
|
#ARG GOLANG_TAG=registry.cmd.navi-tech.in/common/golang:1.19
|
||||||
|
|||||||
@@ -18,13 +18,13 @@ func main() {
|
|||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
err := mig.RunDatabaseMigrations()
|
err := mig.RunDatabaseMigrations()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("cybertron migrations failed", zap.Error(err))
|
log.Log.Fatal("cybertron migrations failed", zap.Error(err))
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := command.Execute(); err != nil {
|
if err := command.Execute(); err != nil {
|
||||||
log.Fatal("cybertron migrations command execution failed", zap.Error(err))
|
log.Log.Fatal("cybertron migrations command execution failed", zap.Error(err))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
port: 9000
|
port: PORT
|
||||||
name: cybertron
|
name: NAME
|
||||||
env: local
|
env: ENV
|
||||||
metrics:
|
metrics:
|
||||||
port: 4001
|
port: METRICS_PORT
|
||||||
timezone: Asia/Kolkata
|
timezone: Asia/Kolkata
|
||||||
|
|
||||||
#DB config
|
#DB config
|
||||||
@@ -16,19 +16,19 @@ db:
|
|||||||
max:
|
max:
|
||||||
idle: 10
|
idle: 10
|
||||||
open: 300
|
open: 300
|
||||||
username: postgres
|
username: DB_USERNAME
|
||||||
password: admin
|
password: DB_PASSWORD
|
||||||
host: office-server.tail3fba9.ts.net
|
host: DB_HOST
|
||||||
port: 5432
|
port: 5432
|
||||||
name: cybertron_dev
|
name: DB_NAME
|
||||||
ssl:
|
ssl:
|
||||||
mode: disable
|
mode: disable
|
||||||
|
|
||||||
#Prometheus config
|
#Prometheus config
|
||||||
prometheus:
|
prometheus:
|
||||||
app.name: cybertron
|
app.name: PROMETHEUS_APP_NAME
|
||||||
host: localhost
|
host: PROMETHEUS_HOST
|
||||||
port: 4001
|
port: PROMETHEUS_POST
|
||||||
enabled: true
|
enabled: true
|
||||||
timeout: 10
|
timeout: 10
|
||||||
flush.interval.in.ms: 200
|
flush.interval.in.ms: 200
|
||||||
@@ -42,12 +42,12 @@ http:
|
|||||||
|
|
||||||
# Kafka config
|
# Kafka config
|
||||||
kafka:
|
kafka:
|
||||||
password: kDia1uC.GI;)Al5eQ)+Q
|
password: KAFKA_PASSWORD
|
||||||
username: varnitgoyal/varnitgoyal95@gmail.com/ocid1.streampool.oc1.ap-mumbai-1.amaaaaaaotdslraanepwp54txqqxkmg4l6dghrhufiezqkx2lqhndgxoq7pa
|
username: KAFKA_USERNAME
|
||||||
brokers: cell-1.streaming.ap-mumbai-1.oci.oraclecloud.com:9092
|
brokers: KAFKA_BROKERS
|
||||||
group:
|
group:
|
||||||
names: {"kafka-stream": "kafka-stream"}
|
names: KAFKA_GROUP
|
||||||
topics: {"kafka-stream": "kafka-stream"}
|
topics: KAFKA_TOPICS
|
||||||
tls:
|
tls:
|
||||||
insecureSkipVerify: true
|
insecureSkipVerify: true
|
||||||
enabled: false
|
enabled: false
|
||||||
@@ -67,22 +67,22 @@ DocumentService:
|
|||||||
generate_token: DOCUMENT_SERVICE_MOCK_GENERATE_TOKEN
|
generate_token: DOCUMENT_SERVICE_MOCK_GENERATE_TOKEN
|
||||||
|
|
||||||
elastic:
|
elastic:
|
||||||
addresses: https://office-server.tail3fba9.ts.net:9200
|
addresses: ELASTIC_ADDRESS
|
||||||
username: elastic
|
username: ELASTIC_USERNAME
|
||||||
password: 9457611267
|
password: ELASTIC_PASSWORD
|
||||||
index: cybertron
|
index: ELASTIC_INDEX
|
||||||
api_key: SFQ1aHhwRUJWRVNkVUlrRWZMYWk6ZFpDTnpWYXdTNDYwdGt1QzlaRV9YQQ==
|
api_key: ELASTIC_API_KEY
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
aws:
|
aws:
|
||||||
region: ap-south-1
|
region: AWS_REGION
|
||||||
bucket: navi-cd955a63c4476df0f00c1cea0e4a40d1
|
bucket: AWS_BUCKET
|
||||||
|
|
||||||
mjolnir:
|
mjolnir:
|
||||||
service.url: https://qa-mjolnir-service.np.navi-ppl.in
|
service.url: MJOLNIR_SERVICE_URL
|
||||||
realm.id: ZicSxsvBwE
|
realm.id: MJOLNIR_REALM
|
||||||
|
|
||||||
houston:
|
houston:
|
||||||
service.url: https://qa-houston.np.navi-sa.in
|
service.url: HOUSTON_SERVICE_URL
|
||||||
realm.id: ZicSxsvBwE
|
realm.id: HOUSTON_REALM_ID
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ func RunDatabaseMigrations() error {
|
|||||||
var err error
|
var err error
|
||||||
postgresConfig := configs.GetPostgresMigConfig()
|
postgresConfig := configs.GetPostgresMigConfig()
|
||||||
appMigrate, err := migrate.New("file://"+dbMigrationsPath, postgresConfig.GetPostgresUrl())
|
appMigrate, err := migrate.New("file://"+dbMigrationsPath, postgresConfig.GetPostgresUrl())
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Log.GetLog().Error("migrations error", zap.Error(err))
|
log.Log.GetLog().Error("migrations error", zap.Error(err))
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
create database cybertron_dev;
|
create database cybertron_dev;
|
||||||
|
|||||||
Reference in New Issue
Block a user