]> Untitled Git - lemmy.git/blob - server/config/defaults.hjson
e5a8f6dc03e1f7090e94dca0ac66b4a34c4e5b6f
[lemmy.git] / server / 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   # the domain name of your instance (eg "dev.lemmy.ml")
18   hostname: "rrr"
19   # address where lemmy should listen for incoming requests
20   bind: "0.0.0.0"
21   # port where lemmy should listen for incoming requests
22   port: 8536
23   # json web token for authorization between server and client
24   jwt_secret: "changeme"
25   # whether to enable activitypub federation. this feature is in alpha, do not enable in production, as might
26   # cause problems like remote instances fetching and permanently storing bad data.
27   federation_enabled: false
28   # rate limits for various user actions, by user ip
29   rate_limit: {
30     # maximum number of messages created in interval
31     message: 30,
32     # interval length for message limit
33     message_per_second: 60,
34     # maximum number of posts created in interval
35     post: 6,
36     # interval length for post limit
37     post_per_second: 600,
38     # maximum number of registrations in interval
39     register: 3,
40     # interval length for registration limit
41     register_per_second: 3600,
42   }
43 #  # email sending configuration
44 #  email: {
45 #    # hostname of the smtp server
46 #    smtp_server: ""
47 #    # login name for smtp server
48 #    smtp_login: ""
49 #    # password to login to the smtp server
50 #    smtp_password: ""
51 #    # address to send emails from, eg "info@your-instance.com"
52 #    smtp_from_address: ""
53 #  }
54 }