]> Untitled Git - lemmy.git/blob - config/defaults.hjson
b4e1e3dfccb8e1f08e266331bd1c387519a9727e
[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     search: 60
40     # Interval length for search limit, in seconds
41     search_per_second: 600
42   }
43   # Settings related to activitypub federation
44   federation: {
45     # Whether to enable activitypub federation.
46     enabled: false
47     # Allows and blocks are described here:
48     # https://join-lemmy.org/docs/en/administration/federation_getting_started.html
49     # 
50     # list of instances with which federation is allowed
51     allowed_instances: [
52       instance1.tld
53       instance2.tld
54       /* ... */
55     ]
56     # Instances which we never federate anything with (but previously federated objects are unaffected)
57     blocked_instances: [
58       string
59       /* ... */
60     ]
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     # Maximum number of HTTP requests allowed to handle a single incoming activity (or a single object fetch through the search).
66     http_fetch_retry_limit: 25
67     # Number of workers for sending outgoing activities. Search logs for Activity queue stats to
68     # see information. If running number is consistently close to the worker_count, you should
69     # increase it.
70     worker_count: 64
71     # Use federation debug mode. Allows connecting to http and localhost urls. Also sends outgoing
72     # activities synchronously for easier testing. Do not use in production.
73     debug: false
74   }
75   # Pictrs image server configuration.
76   pictrs: {
77     # Address where pictrs is available (for image hosting)
78     url: "http://pictrs:8080/"
79     # Set a custom pictrs API key. ( Required for deleting images )
80     api_key: "string"
81   }
82   captcha: {
83     # Whether captcha is required for signup
84     enabled: false
85     # Can be easy, medium, or hard
86     difficulty: "medium"
87   }
88   # Email sending configuration. All options except login/password are mandatory
89   email: {
90     # Hostname and port of the smtp server
91     smtp_server: "localhost:25"
92     # Login name for smtp server
93     smtp_login: "string"
94     # Password to login to the smtp server
95     smtp_password: "string"
96     # Address to send emails from, eg noreply@your-instance.com
97     smtp_from_address: "noreply@example.com"
98     # Whether or not smtp connections should use tls. Can be none, tls, or starttls
99     tls_type: "none"
100   }
101   # Parameters for automatic configuration of new instance (only used at first start)
102   setup: {
103     # Username for the admin user
104     admin_username: "admin"
105     # Password for the admin user. It must be at least 10 characters.
106     admin_password: "tf6HHDS4RolWfFhk4Rq9"
107     # Name of the site (can be changed later)
108     site_name: "My Lemmy Instance"
109     # Email for the admin user (optional, can be omitted and set later through the website)
110     admin_email: "user@example.com"
111   }
112   # the domain name of your instance (mandatory)
113   hostname: "unset"
114   # Address where lemmy should listen for incoming requests
115   bind: "0.0.0.0"
116   # Port where lemmy should listen for incoming requests
117   port: 8536
118   # Whether the site is available over TLS. Needs to be true for federation to work.
119   tls_enabled: true
120   # A regex list of slurs to block / hide
121   slur_filter: "(\bThis\b)|(\bis\b)|(\bsample\b)"
122   # Maximum length of local community and user names
123   actor_name_max_length: 20
124 }