Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 30 additions & 27 deletions .env
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
# OAuth2 Authentication Configuration
# Replace with your actual OAuth provider credentials

# Google OAuth2
GOOGLE_CLIENT_ID=760575932383-1ah7nvt9vi02pr5r20h5nm5g8p1pl87j.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=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
REDIRECT_URL=http://localhost/api/login/oauth2/code
# Facebook OAuth2
FACEBOOK_CLIENT_ID=your-facebook-app-id-here
FACEBOOK_CLIENT_SECRET=your-facebook-app-secret-here
#
# MONGO_URI=mongodb://root:password123@mongodb-primary:27017,mongodb-secondary:27017/StoneInscription?replicaSet=replicaset&authSource=admin
MONGO_URI=mongodb://localhost:27017/StoneInscription

# Apple OAuth2
APPLE_CLIENT_ID=your-apple-service-id-here
APPLE_CLIENT_SECRET=your-apple-client-secret-jwt-here

CONTENT_MODERATION_WEBHOOK_URL=https://inscriptions.cdacb.in/n8n/webhook/content-moderation
CONTENT_MODERATION_SAFE_THRESHOLD=0.6
CONTENT_MODERATION_CONNECT_TIMEOUT_MS=5000
CONTENT_MODERATION_READ_TIMEOUT_MS=10000

# CONTENT_MODERATION_CONNECT_TIMEOUT_MS=300000
# CONTENT_MODERATION_READ_TIMEOUT_MS=300000

# CONTENT_MODERATION_INSECURE_SSL=true
# OAuth2 Authentication Configuration
# Replace with your actual OAuth provider credentials

# Google OAuth2
GOOGLE_CLIENT_ID=760575932383-1ah7nvt9vi02pr5r20h5nm5g8p1pl87j.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=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
REDIRECT_URL=http://localhost/api/login/oauth2/code
# Facebook OAuth2
FACEBOOK_CLIENT_ID=your-facebook-app-id-here
FACEBOOK_CLIENT_SECRET=your-facebook-app-secret-here
#
# MONGO_URI=mongodb://root:password123@mongodb-primary:27017,mongodb-secondary:27017/StoneInscription?replicaSet=replicaset&authSource=admin
MONGO_URI=mongodb://localhost:27017/StoneInscription

# Apple OAuth2
APPLE_CLIENT_ID=your-apple-service-id-here
APPLE_CLIENT_SECRET=your-apple-client-secret-jwt-here


# CONTENT_MODERATION_CONNECT_TIMEOUT_MS=300000
# CONTENT_MODERATION_READ_TIMEOUT_MS=300000


CONTENT_MODERATION_WEBHOOK_URL=https://inscriptions.cdacb.in/n8n/webhook/content-moderation
# CONTENT_MODERATION_INSECURE_SSL=true

CONTENT_MODERATION_SAFE_THRESHOLD=0.7
CONTENT_MODERATION_CONNECT_TIMEOUT_MS=5000
CONTENT_MODERATION_READ_TIMEOUT_MS=10000
CONTENT_MODERATION_INSECURE_SSL=false
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public String extractJwtFromRequest(HttpServletRequest request) {

} else {
throw new StoneInscriptionException("Invalid Token Request Bearer not found ", HttpStatus.BAD_REQUEST);

// return null;
}

}
Expand Down
Loading
Loading