]> Untitled Git - lemmy.git/blob - server/config/defaults.hjson
Automatic instance setup based on config variables (fixes #404)
[lemmy.git] / server / config / defaults.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 "dev.lemmy.ml")
29   hostname: "my_domain"
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   # json web token for authorization between server and client
35   jwt_secret: "changeme"
36   # The dir for the front end
37   front_end_dir: "../ui/dist"
38   # whether to enable activitypub federation. this feature is in alpha, do not enable in production, as might
39   # cause problems like remote instances fetching and permanently storing bad data.
40   federation_enabled: false
41   # rate limits for various user actions, by user ip
42   rate_limit: {
43     # maximum number of messages created in interval
44     message: 180
45     # interval length for message limit
46     message_per_second: 60
47     # maximum number of posts created in interval
48     post: 6
49     # interval length for post limit
50     post_per_second: 600
51     # maximum number of registrations in interval
52     register: 3
53     # interval length for registration limit
54     register_per_second: 3600
55   }
56 #  # email sending configuration
57 #  email: {
58 #    # hostname of the smtp server
59 #    smtp_server: ""
60 #    # login name for smtp server
61 #    smtp_login: ""
62 #    # password to login to the smtp server
63 #    smtp_password: ""
64 #    # address to send emails from, eg "info@your-instance.com"
65 #    smtp_from_address: ""
66 #  }
67 }