module PlaceOS
Defined in:
lib/placeos-log-backend/src/placeos-log-backend/constants.crlib/placeos-models/src/placeos-models/error.cr
backup.cr
constants.cr
logging.cr
restore.cr
start.cr
Constant Summary
-
ANALYTICS_CALLBACK_PATH =
ENV["ANALYTICS_CALLBACK_PATH"]? || "oauth/PlaceOS/callback"
-
ANALYTICS_ROUTE =
ENV["PLACE_ANALYTICS_ROUTE"]? || "analytics"
-
APP_NAME =
"init"
-
APPLICATION_NAME =
ENV["PLACE_APPLICATION"]? || "backoffice"
-
AUTH_HOST =
ENV["PLACE_AUTH_HOST"]? || "auth"
-
AWS_KEY =
ENV["AWS_KEY"]?
-
AWS_KMS_KEY_ID =
ENV["AWS_KMS_KEY_ID"]?
-
AWS_REGION =
ENV["AWS_REGION"]?
-
AWS_S3_BUCKET =
ENV["AWS_S3_BUCKET"]?
-
AWS_S3_OBJECT =
ENV["AWS_S3_OBJECT"]?
-
AWS_SECRET =
ENV["AWS_SECRET"]?
-
AZURE_STORAGE_ACCOUNT_KEY =
ENV["AZURE_STORAGE_ACCOUNT_KEY"]?
-
AZURE_STORAGE_ACCOUNT_NAME =
ENV["AZURE_STORAGE_ACCOUNT_NAME"]?
-
AZURE_STORAGE_BLOB_OBJECT =
ENV["AZURE_STORAGE_BLOB_OBJECT"]?
-
AZURE_STORAGE_CONNECTION_STRING =
ENV["AZURE_STORAGE_CONNECTION_STRING"]?
-
AZURE_STORAGE_CONTAINER =
ENV["AZURE_STORAGE_CONTAINER"]?
-
BACKOFFICE_BRANCH =
ENV["PLACE_BACKOFFICE_BRANCH"]?.presence || "build/#{production? ? "prod" : "dev"}"
-
BACKOFFICE_COMMIT =
ENV["PLACE_BACKOFFICE_COMMIT"]?.presence || "HEAD"
-
BACKUP_CRON =
ENV["PLACE_BACKUP_CRON"]? || "0 0 * * *"
-
DOMAIN =
ENV["PLACE_DOMAIN"]? || "localhost:8080"
-
EMAIL =
ENV["PLACE_EMAIL"]? || (abort("missing PLACE_EMAIL"))
-
ES_HOST =
ENV["ES_HOST"]? || "localhost"
-
ES_PORT =
ENV["ES_PORT"]?.try(&.to_i) || 9200
-
METRICS_ROUTE =
ENV["PLACE_METRICS_ROUTE"]? || "monitor"
-
PASSWORD =
ENV["PLACE_PASSWORD"]? || (abort("missing PLACE_PASSWORD"))
-
PG_DATABASE_URL =
ENV["PG_DATABASE_URL"]? || "postgresql://#{PG_USER}:#{PG_PASS}@#{PG_HOST}:#{PG_PORT}/#{PG_DB}"
-
PG_DB =
ENV["PG_DB"]? || "postgres"
-
PG_DUMP_POSTFIX =
ENV["PG_DUMP_POSTFIX"]? || ""
-
PG_FORCE_RESTORE =
self.boolean_env("PG_FORCE_RESTORE")
-
PG_HOST =
ENV["PG_HOST"]? || "localhost"
-
PG_PASS =
ENV["PG_PASS"]? || ENV["PG_PASSWORD"]?
-
PG_PORT =
ENV["PG_PORT"]?.try(&.to_i) || 5432
-
PG_USER =
ENV["PG_USER"]? || "postgres"
-
PROD =
(ENV["ENV"]? || ENV["SG_ENV"]?) == "production"
-
SKIP_PLACEHOLDERS =
self.boolean_env("PLACE_SKIP_PLACEHOLDERS")
-
TLS =
self.boolean_env("PLACE_TLS")
-
USERNAME =
ENV["PLACE_USERNAME"]? || (abort("missing PLACE_USERNAME"))
-
VERSION =
{{ (`shards version \"/srv/crystaldoc.info/github-PlaceOS-init-v0.27.1/src\"`).chomp.stringify.downcase }}