2021-10-21 16:57:09 +00:00
|
|
|
{
|
2021-10-22 17:29:47 +00:00
|
|
|
# settings related to the postgresql database
|
|
|
|
database: {
|
2023-06-12 09:55:47 +00:00
|
|
|
# Configure the database by specifying a URI
|
|
|
|
#
|
|
|
|
# This is the preferred method to specify database connection details since
|
|
|
|
# it is the most flexible.
|
|
|
|
# Connection URI pointing to a postgres instance
|
|
|
|
#
|
|
|
|
# This example uses peer authentication to obviate the need for creating,
|
|
|
|
# configuring, and managing passwords.
|
|
|
|
#
|
|
|
|
# For an explanation of how to use connection URIs, see [here][0] in
|
|
|
|
# PostgreSQL's documentation.
|
|
|
|
#
|
|
|
|
# [0]: https://www.postgresql.org/docs/current/libpq-connect.html#id-1.7.3.8.3.6
|
|
|
|
uri: "postgresql:///lemmy?user=lemmy&host=/var/run/postgresql"
|
2023-06-09 12:18:22 +00:00
|
|
|
|
2023-06-12 09:55:47 +00:00
|
|
|
# or
|
|
|
|
|
|
|
|
# Configure the database by specifying parts of a URI
|
|
|
|
#
|
|
|
|
# Note that specifying the `uri` field should be preferred since it provides
|
|
|
|
# greater control over how the connection is made. This merely exists for
|
|
|
|
# backwards-compatibility.
|
|
|
|
# Username to connect to postgres
|
|
|
|
user: "string"
|
|
|
|
# Password to connect to postgres
|
|
|
|
password: "string"
|
|
|
|
# Host where postgres is running
|
|
|
|
host: "string"
|
|
|
|
# Port where postgres can be accessed
|
|
|
|
port: 123
|
|
|
|
# Name of the postgres database for lemmy
|
|
|
|
database: "string"
|
2021-10-22 17:29:47 +00:00
|
|
|
# Maximum number of active sql connections
|
2024-01-04 17:16:51 +00:00
|
|
|
pool_size: 30
|
2021-10-22 17:29:47 +00:00
|
|
|
}
|
|
|
|
# Settings related to activitypub federation
|
2022-06-13 19:15:04 +00:00
|
|
|
# Pictrs image server configuration.
|
2022-07-14 18:25:10 +00:00
|
|
|
pictrs: {
|
2022-06-13 19:15:04 +00:00
|
|
|
# Address where pictrs is available (for image hosting)
|
2023-01-20 17:46:49 +00:00
|
|
|
url: "http://localhost:8080/"
|
2022-06-13 19:15:04 +00:00
|
|
|
# Set a custom pictrs API key. ( Required for deleting images )
|
|
|
|
api_key: "string"
|
2023-11-13 14:19:09 +00:00
|
|
|
# By default the thumbnails for external links are stored in pict-rs. This ensures that they
|
|
|
|
# can be reliably retrieved and can be resized using pict-rs APIs. However it also increases
|
|
|
|
# storage usage. In case this is disabled, the Opengraph image is directly returned as
|
|
|
|
# thumbnail.
|
|
|
|
#
|
|
|
|
# In some countries it is forbidden to copy preview images from newspaper articles and only
|
|
|
|
# hotlinking is allowed. If that is the case for your instance, make sure that this setting is
|
|
|
|
# disabled.
|
|
|
|
cache_external_link_previews: true
|
2023-11-17 09:01:32 +00:00
|
|
|
# Timeout for uploading images to pictrs (in seconds)
|
|
|
|
upload_timeout: 30
|
2022-06-13 19:15:04 +00:00
|
|
|
}
|
2021-10-22 17:29:47 +00:00
|
|
|
# Email sending configuration. All options except login/password are mandatory
|
|
|
|
email: {
|
|
|
|
# Hostname and port of the smtp server
|
|
|
|
smtp_server: "localhost:25"
|
|
|
|
# Login name for smtp server
|
|
|
|
smtp_login: "string"
|
|
|
|
# Password to login to the smtp server
|
|
|
|
smtp_password: "string"
|
2022-11-11 21:01:29 +00:00
|
|
|
# Address to send emails from, eg "noreply@your-instance.com"
|
2021-10-22 17:29:47 +00:00
|
|
|
smtp_from_address: "noreply@example.com"
|
2022-01-26 16:42:43 +00:00
|
|
|
# Whether or not smtp connections should use tls. Can be none, tls, or starttls
|
|
|
|
tls_type: "none"
|
2021-10-22 17:29:47 +00:00
|
|
|
}
|
|
|
|
# Parameters for automatic configuration of new instance (only used at first start)
|
|
|
|
setup: {
|
|
|
|
# Username for the admin user
|
|
|
|
admin_username: "admin"
|
2023-10-04 13:09:25 +00:00
|
|
|
# Password for the admin user. It must be between 10 and 60 characters.
|
2022-06-08 15:44:53 +00:00
|
|
|
admin_password: "tf6HHDS4RolWfFhk4Rq9"
|
2023-10-04 13:09:25 +00:00
|
|
|
# Name of the site, can be changed later. Maximum 20 characters.
|
2021-10-22 17:29:47 +00:00
|
|
|
site_name: "My Lemmy Instance"
|
|
|
|
# Email for the admin user (optional, can be omitted and set later through the website)
|
2022-06-08 15:44:53 +00:00
|
|
|
admin_email: "user@example.com"
|
2021-10-22 17:29:47 +00:00
|
|
|
}
|
|
|
|
# the domain name of your instance (mandatory)
|
|
|
|
hostname: "unset"
|
|
|
|
# Address where lemmy should listen for incoming requests
|
|
|
|
bind: "0.0.0.0"
|
|
|
|
# Port where lemmy should listen for incoming requests
|
|
|
|
port: 8536
|
|
|
|
# Whether the site is available over TLS. Needs to be true for federation to work.
|
|
|
|
tls_enabled: true
|
2023-06-26 08:24:11 +00:00
|
|
|
# The number of activitypub federation workers that can be in-flight concurrently
|
|
|
|
worker_count: 0
|
|
|
|
# The number of activitypub federation retry workers that can be in-flight concurrently
|
|
|
|
retry_count: 0
|
2023-07-05 11:25:19 +00:00
|
|
|
prometheus: {
|
|
|
|
bind: "127.0.0.1"
|
|
|
|
port: 10002
|
|
|
|
}
|
2023-10-25 14:46:34 +00:00
|
|
|
# Sets a response Access-Control-Allow-Origin CORS header
|
|
|
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin
|
|
|
|
cors_origin: "*"
|
2021-10-21 16:57:09 +00:00
|
|
|
}
|