2 # settings related to the postgresql database
4 # Username to connect to postgres
6 # Password to connect to postgres
8 # Host where postgres is running
10 # Port where postgres can be accessed
12 # Name of the postgres database for lemmy
14 # Maximum number of active sql connections
17 # rate limits for various user actions, by user ip
19 # Maximum number of messages created in interval
21 # Interval length for message limit, in seconds
22 message_per_second: 60
23 # Maximum number of posts created in interval
25 # Interval length for post limit, in seconds
27 # Maximum number of registrations in interval
29 # Interval length for registration limit, in seconds
30 register_per_second: 3600
31 # Maximum number of image uploads in interval
33 # Interval length for image uploads, in seconds
34 image_per_second: 3600
35 # Maximum number of comments created in interval
37 # Interval length for comment limit, in seconds
38 comment_per_second: 600
40 # Interval length for search limit, in seconds
41 search_per_second: 600
43 # Settings related to activitypub federation
45 # Whether to enable activitypub federation.
47 # Allows and blocks are described here:
48 # https://join-lemmy.org/docs/en/administration/federation_getting_started.html
50 # list of instances with which federation is allowed
56 # Instances which we never federate anything with (but previously federated objects are unaffected)
61 # If true, only federate with instances on the allowlist and block everything else. If false
62 # use allowlist only for remote communities, and posts/comments in local communities
63 # (meaning remote communities will show content from arbitrary instances).
64 strict_allowlist: true
65 # Number of workers for sending outgoing activities. Search logs for Activity queue stats to
66 # see information. If running number is consistently close to the worker_count, you should
69 # Use federation debug mode. Allows connecting to http and localhost urls. Also sends outgoing
70 # activities synchronously for easier testing. Do not use in production.
74 # Whether captcha is required for signup
76 # Can be easy, medium, or hard
79 # Email sending configuration. All options except login/password are mandatory
81 # Hostname and port of the smtp server
82 smtp_server: "localhost:25"
83 # Login name for smtp server
85 # Password to login to the smtp server
86 smtp_password: "string"
87 # Address to send emails from, eg noreply@your-instance.com
88 smtp_from_address: "noreply@example.com"
89 # Whether or not smtp connections should use tls. Can be none, tls, or starttls
92 # Parameters for automatic configuration of new instance (only used at first start)
94 # Username for the admin user
95 admin_username: "admin"
96 # Password for the admin user. It must be at least 10 characters.
97 admin_password: "tf6HHDS4RolWfFhk4Rq9"
98 # Name of the site (can be changed later)
99 site_name: "My Lemmy Instance"
100 # Email for the admin user (optional, can be omitted and set later through the website)
101 admin_email: "user@example.com"
103 # the domain name of your instance (mandatory)
105 # Address where lemmy should listen for incoming requests
107 # Port where lemmy should listen for incoming requests
109 # Whether the site is available over TLS. Needs to be true for federation to work.
111 # Address where pictrs is available (for image hosting)
112 pictrs_url: "http://localhost:8080"
113 slur_filter: "(\bThis\b)|(\bis\b)|(\bsample\b)"
114 # Maximum length of local community and user names
115 actor_name_max_length: 20
116 # Maximum number of HTTP requests allowed to handle a single incoming activity (or a single object fetch through the search).
117 http_fetch_retry_limit: 25