2019-12-15 11:40:55 -05:00
|
|
|
{
|
2020-03-26 10:23:15 -04:00
|
|
|
# # optional: parameters for automatic configuration of new instance (only used at first start)
|
|
|
|
# setup: {
|
|
|
|
# # username for the admin user
|
|
|
|
# admin_username: ""
|
|
|
|
# # password for the admin user
|
|
|
|
# admin_password: ""
|
|
|
|
# # optional: email for the admin user (can be omitted and set later through the website)
|
|
|
|
# admin_email: ""
|
|
|
|
# # name of the site (can be changed later)
|
|
|
|
# site_name: ""
|
|
|
|
# }
|
2019-12-17 11:42:13 -05:00
|
|
|
# settings related to the postgresql database
|
2019-12-15 11:40:55 -05:00
|
|
|
database: {
|
2019-12-26 14:48:13 -05:00
|
|
|
# username to connect to postgres
|
|
|
|
user: "lemmy"
|
|
|
|
# password to connect to postgres
|
|
|
|
password: "password"
|
|
|
|
# host where postgres is running
|
|
|
|
host: "localhost"
|
|
|
|
# port where postgres can be accessed
|
|
|
|
port: 5432
|
|
|
|
# name of the postgres database for lemmy
|
|
|
|
database: "lemmy"
|
|
|
|
# maximum number of active sql connections
|
|
|
|
pool_size: 5
|
|
|
|
}
|
2020-11-26 11:47:01 -05:00
|
|
|
# the domain name of your instance (eg "lemmy.ml")
|
2019-12-27 12:25:07 -05:00
|
|
|
hostname: null
|
2019-12-17 11:42:13 -05:00
|
|
|
# address where lemmy should listen for incoming requests
|
2019-12-15 11:40:55 -05:00
|
|
|
bind: "0.0.0.0"
|
2019-12-17 11:42:13 -05:00
|
|
|
# port where lemmy should listen for incoming requests
|
2019-12-15 11:40:55 -05:00
|
|
|
port: 8536
|
2020-09-25 11:33:00 -04:00
|
|
|
# whether tls is required for activitypub. only disable this for debugging, never for producion.
|
|
|
|
tls_enabled: true
|
2019-12-17 11:42:13 -05:00
|
|
|
# json web token for authorization between server and client
|
2019-12-15 11:40:55 -05:00
|
|
|
jwt_secret: "changeme"
|
2020-11-01 22:21:15 -05:00
|
|
|
# path to built documentation
|
|
|
|
docs_dir: "/app/documentation"
|
2020-08-05 12:00:00 -04:00
|
|
|
# address where pictrs is available
|
|
|
|
pictrs_url: "http://pictrs:8080"
|
2020-10-31 18:08:03 -04:00
|
|
|
# address where iframely is available
|
|
|
|
iframely_url: "http://iframely"
|
2019-12-17 11:42:13 -05:00
|
|
|
# rate limits for various user actions, by user ip
|
2019-12-15 11:40:55 -05:00
|
|
|
rate_limit: {
|
2019-12-17 11:42:13 -05:00
|
|
|
# maximum number of messages created in interval
|
2020-02-06 16:07:59 -05:00
|
|
|
message: 180
|
2019-12-17 11:42:13 -05:00
|
|
|
# interval length for message limit
|
2019-12-28 16:06:37 -05:00
|
|
|
message_per_second: 60
|
2019-12-17 11:42:13 -05:00
|
|
|
# maximum number of posts created in interval
|
2019-12-28 16:06:37 -05:00
|
|
|
post: 6
|
2019-12-17 11:42:13 -05:00
|
|
|
# interval length for post limit
|
2019-12-28 16:06:37 -05:00
|
|
|
post_per_second: 600
|
2019-12-17 11:42:13 -05:00
|
|
|
# maximum number of registrations in interval
|
2019-12-28 16:06:37 -05:00
|
|
|
register: 3
|
2019-12-17 11:42:13 -05:00
|
|
|
# interval length for registration limit
|
2019-12-28 16:06:37 -05:00
|
|
|
register_per_second: 3600
|
2020-08-05 12:00:00 -04:00
|
|
|
# maximum number of image uploads in interval
|
|
|
|
image: 6
|
|
|
|
# interval length for image uploads
|
|
|
|
image_per_second: 3600
|
2019-12-15 11:40:55 -05:00
|
|
|
}
|
2020-03-18 17:09:00 -04:00
|
|
|
# settings related to activitypub federation
|
|
|
|
federation: {
|
2020-10-16 16:46:40 -04:00
|
|
|
# whether to enable activitypub federation.
|
2020-03-18 17:09:00 -04:00
|
|
|
enabled: false
|
2020-10-16 16:46:40 -04:00
|
|
|
# Allows and blocks are described here:
|
2020-11-26 11:47:01 -05:00
|
|
|
# https://lemmy.ml/docs/administration_federation.html#instance-allowlist-and-blocklist
|
2020-10-16 16:46:40 -04:00
|
|
|
#
|
2020-08-13 16:26:49 -04:00
|
|
|
# comma separated list of instances with which federation is allowed
|
2020-06-16 06:49:51 -04:00
|
|
|
allowed_instances: ""
|
2020-08-13 16:26:49 -04:00
|
|
|
# comma separated list of instances which are blocked from federating
|
|
|
|
blocked_instances: ""
|
2020-03-18 17:09:00 -04:00
|
|
|
}
|
2020-07-29 09:02:46 -04:00
|
|
|
captcha: {
|
|
|
|
enabled: true
|
|
|
|
difficulty: medium # Can be easy, medium, or hard
|
|
|
|
}
|
2019-12-17 11:42:13 -05:00
|
|
|
# # email sending configuration
|
2019-12-15 11:40:55 -05:00
|
|
|
# email: {
|
2020-06-24 10:09:52 -04:00
|
|
|
# # hostname and port of the smtp server
|
2019-12-15 11:40:55 -05:00
|
|
|
# smtp_server: ""
|
2019-12-17 11:42:13 -05:00
|
|
|
# # login name for smtp server
|
2019-12-15 11:40:55 -05:00
|
|
|
# smtp_login: ""
|
2019-12-17 11:42:13 -05:00
|
|
|
# # password to login to the smtp server
|
2019-12-15 11:40:55 -05:00
|
|
|
# smtp_password: ""
|
2020-06-24 10:09:52 -04:00
|
|
|
# # address to send emails from, eg "noreply@your-instance.com"
|
2019-12-15 11:40:55 -05:00
|
|
|
# smtp_from_address: ""
|
2020-06-24 10:09:52 -04:00
|
|
|
# # whether or not smtp connections should use tls
|
|
|
|
# use_tls: true
|
2019-12-15 11:40:55 -05:00
|
|
|
# }
|
|
|
|
}
|