Sha256: 1cd2792e7ae2156e51275fd986dabc67442369eda8ce21bd57724fbb35843a04

Contents?: true

Size: 910 Bytes

Versions: 2

Compression:

Stored size: 910 Bytes

Contents

# typed: false
# frozen_string_literal: true

PLUG_APP_URL = ENV.fetch("PLUG_APP_URL", "yetto.email")

YETTO_URL = if Rails.env.production?
  "yetto.app"
elsif Rails.env.staging?
  "yetto-staging.onrender.com"
elsif Rails.env.development?
  "localhost:3000"
elsif Rails.env.test?
  "test.yetto.app"
end

YETTO_API_TLD = ENV.fetch("YETTO_API_TLD", "#{YETTO_URL}/api")
YETTO_API_VERSION = ENV.fetch("YETTO_API_VERSION", "v1")

SLACK_LOG_URL = ENV.fetch("SLACK_LOG_URL", nil)

YETTO_PLUG_APP_TOKEN = ENV.fetch("YETTO_PLUG_APP_TOKEN", "super-secret")

# For Honeycomb.io
OTEL_EXPORTER_OTLP_ENDPOINT = ENV.fetch("OTEL_EXPORTER_OTLP_ENDPOINT", "https://api.honeycomb.io")
OTEL_EXPORTER_OTLP_HEADERS = ENV.fetch("OTEL_EXPORTER_OTLP_HEADERS", "x-honeycomb-team=your-api-key")
OTEL_SERVICE_NAME = ENV.fetch("OTEL_SERVICE_NAME", "your-service-name")

def productionish?
  Rails.env.production? || Rails.env.staging?
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hephaestus-0.0.2 templates/config/initializers/environment.rb
hephaestus-0.0.1 templates/config/initializers/environment.rb