Set up libretranslate for kosmos.social

This commit is contained in:
Râu Cao
2023-01-17 17:12:22 +08:00
parent 3933e4c310
commit ed0e030106
7 changed files with 89 additions and 4 deletions

View File

@@ -35,6 +35,9 @@ SMTP_FROM_ADDRESS=<%= @smtp_from_address %>
# Serve static files (to nginx proxy)
RAILS_SERVE_STATIC_FILES=true
# Private addresses/subnets to allow outgoing HTTP requests to
ALLOWED_PRIVATE_ADDRESSES=<%= @allowed_private_addresses %>
<% if @s3_endpoint %>
# S3 (optional)
S3_ENABLED=true
@@ -46,6 +49,14 @@ AWS_ACCESS_KEY_ID=<%= @aws_access_key_id %>
AWS_SECRET_ACCESS_KEY=<%= @aws_secret_access_key %>
<% end %>
# locale
DEFAULT_LOCALE=<%= @default_locale %>
<% if @libre_translate_endpoint %>
# translate
LIBRE_TRANSLATE_ENDPOINT=<%= @libre_translate_endpoint %>
<% end %>
# Optional alias for S3 if you want to use Cloudfront or Cloudflare in front
# S3_CLOUDFRONT_HOST=