]> Untitled Git - lemmy.git/blob - docker/lemmy.hjson
Merge branch 'master' into federation
[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   # rate limits for various user actions, by user ip
27   rate_limit: {
28     # maximum number of messages created in interval
29     message: 180
30     # interval length for message limit
31     message_per_second: 60
32     # maximum number of posts created in interval
33     post: 6
34     # interval length for post limit
35     post_per_second: 600
36     # maximum number of registrations in interval
37     register: 3
38     # interval length for registration limit
39     register_per_second: 3600
40   }
41 #  # optional: parameters for automatic configuration of new instance (only used at first start)
42 #  setup: {
43 #    # username for the admin user
44 #    admin_username: "lemmy"
45 #    # password for the admin user
46 #    admin_password: "lemmy"
47 #    # name of the site (can be changed later)
48 #    site_name: "Lemmy Test"
49 #  }
50 #  # optional: email sending configuration
51 #  email: {
52 #    # hostname of the smtp server
53 #    smtp_server: ""
54 #    # login name for smtp server
55 #    smtp_login: ""
56 #    # password to login to the smtp server
57 #    smtp_password: ""
58 #    # address to send emails from, eg "info@your-instance.com"
59 #    smtp_from_address: ""
60 #    use_tls: true
61 #  }
62 }
63