]> Untitled Git - lemmy.git/blob - config/defaults.hjson
Increase default worker count (#2120)
[lemmy.git] / config / defaults.hjson
1 {
2   # settings related to the postgresql database
3   database: {
4     # Username to connect to postgres
5     user: "lemmy"
6     # Password to connect to postgres
7     password: "password"
8     # Host where postgres is running
9     host: "localhost"
10     # Port where postgres can be accessed
11     port: 5432
12     # Name of the postgres database for lemmy
13     database: "lemmy"
14     # Maximum number of active sql connections
15     pool_size: 5
16   }
17   # rate limits for various user actions, by user ip
18   rate_limit: {
19     # Maximum number of messages created in interval
20     message: 180
21     # Interval length for message limit, in seconds
22     message_per_second: 60
23     # Maximum number of posts created in interval
24     post: 6
25     # Interval length for post limit, in seconds
26     post_per_second: 600
27     # Maximum number of registrations in interval
28     register: 3
29     # Interval length for registration limit, in seconds
30     register_per_second: 3600
31     # Maximum number of image uploads in interval
32     image: 6
33     # Interval length for image uploads, in seconds
34     image_per_second: 3600
35     # Maximum number of comments created in interval
36     comment: 6
37     # Interval length for comment limit, in seconds
38     comment_per_second: 600
39   }
40   # Settings related to activitypub federation
41   federation: {
42     # Whether to enable activitypub federation.
43     enabled: false
44     # Allows and blocks are described here:
45     # https://join-lemmy.org/docs/en/federation/administration.html///instance-allowlist-and-blocklist
46     # 
47     # list of instances with which federation is allowed
48     allowed_instances: [
49       instance1.tld
50       instance2.tld
51       /* ... */
52     ]
53     # Instances which we never federate anything with (but previously federated objects are unaffected)
54     blocked_instances: [
55       string
56       /* ... */
57     ]
58     # If true, only federate with instances on the allowlist and block everything else. If false
59     # use allowlist only for remote communities, and posts/comments in local communities
60     # (meaning remote communities will show content from arbitrary instances).
61     strict_allowlist: true
62     # Number of workers for sending outgoing activities. Search logs for Activity queue stats to
63     # see information. If running number is consistently close to the worker_count, you should
64     # increase it.
65     worker_count: 64
66   }
67   captcha: {
68     # Whether captcha is required for signup
69     enabled: false
70     # Can be easy, medium, or hard
71     difficulty: "medium"
72   }
73   # Email sending configuration. All options except login/password are mandatory
74   email: {
75     # Hostname and port of the smtp server
76     smtp_server: "localhost:25"
77     # Login name for smtp server
78     smtp_login: "string"
79     # Password to login to the smtp server
80     smtp_password: "string"
81     # Address to send emails from, eg noreply@your-instance.com
82     smtp_from_address: "noreply@example.com"
83     # Whether or not smtp connections should use tls. Can be none, tls, or starttls
84     tls_type: "none"
85   }
86   # Parameters for automatic configuration of new instance (only used at first start)
87   setup: {
88     # Username for the admin user
89     admin_username: "admin"
90     # Password for the admin user. It must be at least 10 characters.
91     admin_password: "my_passwd_longer_than_ten_characters"
92     # Name of the site (can be changed later)
93     site_name: "My Lemmy Instance"
94     # Email for the admin user (optional, can be omitted and set later through the website)
95     admin_email: "string"
96     sidebar: "string"
97     description: "string"
98     icon: "string"
99     banner: "string"
100     enable_downvotes: true
101     open_registration: true
102     enable_nsfw: true
103     community_creation_admin_only: true
104     require_email_verification: true
105     require_application: true
106     application_question: "string"
107     private_instance: true
108     default_theme: "string"
109   }
110   # the domain name of your instance (mandatory)
111   hostname: "unset"
112   # Address where lemmy should listen for incoming requests
113   bind: "0.0.0.0"
114   # Port where lemmy should listen for incoming requests
115   port: 8536
116   # Whether the site is available over TLS. Needs to be true for federation to work.
117   tls_enabled: true
118   # Address where pictrs is available (for image hosting)
119   pictrs_url: "http://localhost:8080"
120   slur_filter: "(\bThis\b)|(\bis\b)|(\bsample\b)"
121   # Maximum length of local community and user names
122   actor_name_max_length: 20
123   # Maximum number of HTTP requests allowed to handle a single incoming activity (or a single object fetch through the search).
124   http_fetch_retry_limit: 25
125 }