]> Untitled Git - lemmy.git/blob - config/config.hjson
Change join.lemmy.ml to join-lemmy.org (#1628)
[lemmy.git] / config / config.hjson
1 {
2 #  # optional: parameters for automatic configuration of new instance (only used at first start)
3 #  setup: {
4 #    # username for the admin user
5 #    admin_username: ""
6 #    # password for the admin user
7 #    admin_password: ""
8 #    # optional: email for the admin user (can be omitted and set later through the website)
9 #    admin_email: ""
10 #    # name of the site (can be changed later)
11 #    site_name: ""
12 #  }
13   # settings related to the postgresql database
14   database: {
15     # username to connect to postgres
16     user: "lemmy"
17     # password to connect to postgres
18     password: "password"
19     # host where postgres is running
20     host: "localhost"
21     # port where postgres can be accessed
22     port: 5432
23     # name of the postgres database for lemmy
24     database: "lemmy"
25     # maximum number of active sql connections
26     pool_size: 5
27   }
28   # the domain name of your instance (eg "lemmy.ml")
29   hostname: lemmy-alpha
30   # address where lemmy should listen for incoming requests
31   bind: "0.0.0.0"
32   # port where lemmy should listen for incoming requests
33   port: 8536
34   # whether tls is required for activitypub. only disable this for debugging, never for producion.
35   tls_enabled: true
36   # json web token for authorization between server and client
37   jwt_secret: "changeme"
38   # address where pictrs is available
39   pictrs_url: "http://pictrs:8080"
40   # address where iframely is available
41   iframely_url: "http://iframely"
42   # rate limits for various user actions, by user ip
43   rate_limit: {
44     # maximum number of messages created in interval
45     message: 180
46     # interval length for message limit
47     message_per_second: 60
48     # maximum number of posts created in interval
49     post: 6
50     # interval length for post limit
51     post_per_second: 600
52     # maximum number of registrations in interval
53     register: 3
54     # interval length for registration limit
55     register_per_second: 3600
56     # maximum number of image uploads in interval
57     image: 6
58     # interval length for image uploads
59     image_per_second: 3600
60   }
61   # settings related to activitypub federation
62   federation: {
63     # whether to enable activitypub federation.
64     enabled: false
65     # Allows and blocks are described here:
66     # https://join-lemmy.org/docs/en/federation/administration.html#instance-allowlist-and-blocklist
67     #
68     # list of instances with which federation is allowed
69     # allowed_instances: ["instance1.tld","instance2.tld"]
70     # instances which we never federate anything with (but previously federated objects are unaffected)
71     # blocked_instances: []
72     # If true, only federate with instances on the allowlist and block everything else. If false,
73     # use allowlist only for remote communities, and posts/comments in local communities.
74     # strict_allowlist: true
75   }
76   captcha: {
77     enabled: true
78     difficulty: medium # Can be easy, medium, or hard
79   }
80 #  # email sending configuration
81 #  email: {
82 #    # hostname and port of the smtp server
83 #    smtp_server: ""
84 #    # login name for smtp server
85 #    smtp_login: ""
86 #    # password to login to the smtp server
87 #    smtp_password: ""
88 #    # address to send emails from, eg "noreply@your-instance.com"
89 #    smtp_from_address: ""
90 #    # whether or not smtp connections should use tls
91 #    use_tls: true
92 #  }
93   # additional_slurs:
94   #  '''
95   #  (\bThis\b)|(\bis\b)|(\bsample\b)
96   #  '''
97 }