Files
atproto-pds-ansible/templates/pds.env.j2
T

84 lines
3.1 KiB
Bash

PDS_HOSTNAME={{ pds_hostname }}
PDS_JWT_SECRET={{ pds_jwt_secret }}
PDS_ADMIN_PASSWORD={{ pds_admin_password }}
PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX={{ pds_plc_rotation_key }}
PDS_DATA_DIRECTORY={{ pds_data_dir }}
{% if pds_blobstore_type is defined and pds_blobstore_type == "s3" %}
PDS_BLOBSTORE_S3_BUCKET={{ pds_blobstore_s3_bucket }}
PDS_BLOBSTORE_S3_REGION={{ pds_blobstore_s3_region }}
{% if pds_blobstore_s3_endpoint is defined %}
PDS_BLOBSTORE_S3_ENDPOINT={{ pds_blobstore_s3_endpoint }}
{% endif %}
{% if pds_blobstore_s3_force_path_style is defined %}
PDS_BLOBSTORE_S3_FORCE_PATH_STYLE={{ pds_blobstore_s3_force_path_style | lower }}
{% endif %}
PDS_BLOBSTORE_S3_ACCESS_KEY_ID={{ pds_blobstore_s3_access_key }}
PDS_BLOBSTORE_S3_SECRET_ACCESS_KEY={{ pds_blobstore_s3_secret_key }}
{% else %}
PDS_BLOBSTORE_DISK_LOCATION={{ pds_data_dir }}/blocks
{% endif %}
PDS_BLOB_UPLOAD_LIMIT={{ pds_blob_upload_limit }}
PDS_DID_PLC_URL=https://plc.directory
PDS_BSKY_APP_VIEW_URL=https://api.bsky.app
PDS_BSKY_APP_VIEW_DID=did:web:api.bsky.app
PDS_REPORT_SERVICE_URL=https://mod.bsky.app
PDS_REPORT_SERVICE_DID=did:plc:ar7c4by46qjdydhdevvrndac
PDS_CRAWLERS=https://bsky.network
LOG_ENABLED=true
PDS_RATE_LIMITS_ENABLED={{ pds_rate_limits_enabled | lower }}
PDS_INVITE_REQUIRED={{ pds_invite_required | lower }}
{% if pds_email_smtp_url is defined %}
PDS_EMAIL_SMTP_URL={{ pds_email_smtp_url }}
{% endif %}
{% if pds_email_from_address is defined %}
PDS_EMAIL_FROM_ADDRESS={{ pds_email_from_address }}
{% endif %}
{% if pds_service_name is defined %}
PDS_SERVICE_NAME={{ pds_service_name }}
{% endif %}
{% if pds_logo_url is defined %}
PDS_LOGO_URL={{ pds_logo_url }}
{% endif %}
{% if pds_primary_color is defined %}
PDS_PRIMARY_COLOR={{ pds_primary_color }}
{% endif %}
{% if pds_error_color is defined %}
PDS_ERROR_COLOR={{ pds_error_color }}
{% endif %}
{% if pds_warning_color is defined %}
PDS_WARNING_COLOR={{ pds_warning_color }}
{% endif %}
{% if pds_info_color is defined %}
PDS_INFO_COLOR={{ pds_info_color }}
{% endif %}
{% if pds_success_color is defined %}
PDS_SUCCESS_COLOR={{ pds_success_color }}
{% endif %}
{% if pds_home_url is defined %}
PDS_HOME_URL={{ pds_home_url }}
{% endif %}
{% if pds_terms_of_service_url is defined %}
PDS_TERMS_OF_SERVICE_URL={{ pds_terms_of_service_url }}
{% endif %}
{% if pds_privacy_policy_url is defined %}
PDS_PRIVACY_POLICY_URL={{ pds_privacy_policy_url }}
{% endif %}
{% if pds_support_url is defined %}
PDS_SUPPORT_URL={{ pds_support_url }}
{% endif %}
{% if pds_background_light_url is defined %}
PDS_BACKGROUND_LIGHT_URL={{ pds_background_light_url }}
{% endif %}
{% if pds_background_dark_url is defined %}
PDS_BACKGROUND_DARK_URL={{ pds_background_dark_url }}
{% endif %}
{% if pds_telemetry_enabled is defined and pds_telemetry_enabled | bool %}
NODE_OPTIONS=--import=@atproto/pds/telemetry
OTEL_SERVICE_NAME=pds
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://localhost:9090/api/v1/otlp/v1/metrics
OTEL_EXPORTER_OTLP_METRICS_PROTOCOL=http/protobuf
OTEL_METRIC_EXPORT_INTERVAL=15000
OTEL_SEMCONV_STABILITY_OPT_IN=http
OTEL_NODE_RESOURCE_DETECTORS=env,host,os,process,serviceinstance,container
{% endif %}