Skip to main content

Environment Variables - Staging and Production

Ayushma Environment Setup

Ayushma provides options for both staging and production environments to facilitate testing and deployment.

Staging Environment

  • Staging Deployment: Access the staging deployment of Ayushma at https://ayushma-staging.ohc.network. This environment allows you to explore the application's features and functionality with sample data.

  • API Credentials:

    • Email: demo@ayushma.ohc.network
    • Password: Demo@Ayu

    Use code with caution.

You can also register as a new user in the staging environment.

Production Environment

  • Production Deployment: The production deployment of Ayushma is available at https://ayushma.ohc.network. This environment reflects the latest stable version of the application.
  • API Credentials: For the production environment, you'll need to set up your own user accounts and API keys.

Environment Variables

Ayushma utilizes environment variables for configuration in both the front-end and back-end. These variables allow you to customize various aspects of the application's behavior.

Front-end Environment Variables (.env or .env.local):

VariableDescriptionDefault Value
NEXT_PUBLIC_API_URLBackend API URLhttps://ayushma-api.ohc.network/api/
NEXT_PUBLIC_LOCAL_STORAGELocal storage key name for storing user preferencesayushma-storage
NEXT_PUBLIC_AI_NAMEName of the AI assistant displayed in the chat interfaceAyushma
NEXT_PUBLIC_AI_DESCRIPTIONDescription of the AI assistant displayed on the home pageRevolutionizing medical diagnosis through AI
NEXT_PUBLIC_AI_WARNINGWarning message regarding the accuracy of AI-generated informationPlease be aware that Ayushma AI may...
NEXT_PUBLIC_GOOGLE_RECAPTCHA_SITE_KEYGoogle reCAPTCHA site key (optional)6Lerts4nAAAAAKyXaNZkYj4XfRO0M2R-XYIA3qv8

Back-end Environment Variables (.env):

VariableDescription
AI_NAMEName of the AI assistant (default: Ayushma)
OPENAI_API_KEYOpenAI API Key
PINECONE_API_KEYPinecone API Key
PINECONE_ENVIRONMENTPinecone Environment
PINECONE_INDEXPinecone Index Name
CURRENT_DOMAINCurrent Domain where the front-end is hosted (e.g., https://ayushma.ohc.network)
EMAIL_HOSTSES Email Host (Optional)
EMAIL_USERSES Email User (Optional)
EMAIL_PASSWORDSES Email Password (Optional)
GOOGLE_APPLICATION_CREDENTIALSGoogle Cloud Credentials (Optional) for Speech-to-Text
S3_SECRET_KEYAWS S3 Secret Key (Optional)
S3_KEY_IDAWS S3 Key ID (Optional)
S3_BUCKET_NAMEAWS S3 Bucket Name (Optional)
S3_REGIONAWS S3 Region (Optional)
GOOGLE_RECAPTCHA_SECRET_KEYGoogle reCAPTCHA Secret Key (Optional)
SELF_HOSTED_ENDPOINTURL for self-hosted speech-to-text (Optional)