services/users/env/config.prod.yaml
commonConfig:
host: 0.0.0.0:8080
hostname: kicksware.com
usedDB: mongo
contentType: application/json
apiEndpointFormat: https://api.kicksware.com/%s
rpcEndpointFormat: rpc.kicksware.com:443
securityConfig:
tlsCertificate:
enableTLS: true
certFile: certs/grpc/tls.crt
keyFile: certs/grpc/tls.key
authConfig:
issuerName: middleware/user-service
tokenExpirationDelta: 360
privateKeyPath: keys/private.key
publicKeyPath: keys/auth/public.key
accessKey: $AUTH_ACCESS_KEY
mailConfig:
server: $MAIL_SERVER
address: $MAIL_ADDRESS
password: $MAIL_PASSWORD
verifyEmailTemplate: template/verify.template.html
resetPasswordTemplate: template/reset.template.html
notificationTemplate: template/notification.template.html
fallbackMailConfig:
server: $FALLBACK_MAIL_SERVER
address: $FALLBACK_MAIL_ADDRESS
password: $FALLBACK_MAIL_PASSWORD
verifyEmailTemplate: template/verify.template.html
resetPasswordTemplate: template/reset.template.html
notificationTemplate: template/notification.template.html
usersDBConfig:
URL: mongodb://mongodb.infra:27017
TLS:
enableTLS: true
certFile: certs/mongo/ca.crt
keyFile: certs/mongo/tls.key
database: sneakerResaleDB
collection: users
login: $MONGO_USER
password: $MONGO_PASSWORD
timeout: 30
likesDBConfig:
URL: mongodb://mongodb.infra:27017
TLS:
enableTLS: true
certFile: certs/mongo/ca.crt
keyFile: certs/mongo/tls.key
database: sneakerResaleDB
collection: likes
login: $MONGO_USER
password: $MONGO_PASSWORD
timeout: 10
remotesDBConfig:
URL: mongodb://mongodb.infra:27017
TLS:
enableTLS: true
certFile: certs/mongo/ca.crt
keyFile: certs/mongo/tls.key
database: sneakerResaleDB
collection: remotes
login: $MONGO_USER
password: $MONGO_PASSWORD
timeout: 15
subscriptionsDBConfig:
URL: mongodb://mongodb.infra:27017
TLS:
enableTLS: true
certFile: certs/mongo/ca.crt
keyFile: certs/mongo/tls.key
database: sneakerResaleDB
collection: subscriptions
login: $MONGO_USER
password: $MONGO_PASSWORD
timeout: 15
postgresConfig:
URL: postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres:5432/sneakerResaleDB
database: sneakerResaleDB
collection: Users
likesCollection: Likes
login: $POSTGRES_USER
password: $POSTGRES_PASSWORD
timeout: 30