]> Untitled Git - lemmy.git/blob - docker/lemmy.hjson
Automatic instance setup based on config variables (fixes #404)
[lemmy.git] / docker / lemmy.hjson
1 {
2   database: {
3     # username to connect to postgres
4     user: "lemmy"
5     # password to connect to postgres
6     password: "password"
7     # host where postgres is running
8     host: "postgres"
9     # port where postgres can be accessed
10     port: 5432
11     # name of the postgres database for lemmy
12     database: "lemmy"
13     # maximum number of active sql connections
14     pool_size: 5
15   }
16   # the domain name of your instance (eg "dev.lemmy.ml")
17   hostname: "my_domain"
18   # address where lemmy should listen for incoming requests
19   bind: "0.0.0.0"
20   # port where lemmy should listen for incoming requests
21   port: 8536
22   # json web token for authorization between server and client
23   jwt_secret: "changeme"
24   # The dir for the front end
25   front_end_dir: "/app/dist"
26   # whether to enable activitypub federation. this feature is in alpha, do not enable in production, as might
27   # cause problems like remote instances fetching and permanently storing bad data.
28   federation_enabled: false
29   # rate limits for various user actions, by user ip
30   rate_limit: {
31     # maximum number of messages created in interval
32     message: 180
33     # interval length for message limit
34     message_per_second: 60
35     # maximum number of posts created in interval
36     post: 6
37     # interval length for post limit
38     post_per_second: 600
39     # maximum number of registrations in interval
40     register: 3
41     # interval length for registration limit
42     register_per_second: 3600
43   }
44 #  # optional: parameters for automatic configuration of new instance (only used at first start)
45 #  setup: {
46 #    # username for the admin user
47 #    admin_username: "lemmy"
48 #    # password for the admin user
49 #    admin_password: "lemmy"
50 #    # name of the site (can be changed later)
51 #    site_name: "Lemmy Test"
52 #  }
53 #  # optional: email sending configuration
54 #  email: {
55 #    # hostname of the smtp server
56 #    smtp_server: ""
57 #    # login name for smtp server
58 #    smtp_login: ""
59 #    # password to login to the smtp server
60 #    smtp_password: ""
61 #    # address to send emails from, eg "info@your-instance.com"
62 #    smtp_from_address: ""
63 #  }
64 }
65