]> Untitled Git - lemmy.git/blob - server/config/defaults.hjson
9a7ad49db72588dde27fc1f0ef1b2cf16b380fb2
[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: "my_domain"
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   # The dir for the front end
26   front_end_dir: "../ui/dist"
27   # whether to enable activitypub federation. this feature is in alpha, do not enable in production, as might
28   # cause problems like remote instances fetching and permanently storing bad data.
29   federation_enabled: false
30   # rate limits for various user actions, by user ip
31   rate_limit: {
32     # maximum number of messages created in interval
33     message: 30
34     # interval length for message limit
35     message_per_second: 60
36     # maximum number of posts created in interval
37     post: 6
38     # interval length for post limit
39     post_per_second: 600
40     # maximum number of registrations in interval
41     register: 3
42     # interval length for registration limit
43     register_per_second: 3600
44   }
45 #  # email sending configuration
46 #  email: {
47 #    # hostname of the smtp server
48 #    smtp_server: ""
49 #    # login name for smtp server
50 #    smtp_login: ""
51 #    # password to login to the smtp server
52 #    smtp_password: ""
53 #    # address to send emails from, eg "info@your-instance.com"
54 #    smtp_from_address: ""
55 #  }
56 }