]> Untitled Git - lemmy.git/blob - server/config/defaults.hjson
routes.api: fix get_captcha endpoint (#1135)
[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: null
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 location of the frontend
37   front_end_dir: "../ui/dist"
38   # address where pictrs is available
39   pictrs_url: "http://pictrs:8080"
40   # rate limits for various user actions, by user ip
41   rate_limit: {
42     # maximum number of messages created in interval
43     message: 180
44     # interval length for message limit
45     message_per_second: 60
46     # maximum number of posts created in interval
47     post: 6
48     # interval length for post limit
49     post_per_second: 600
50     # maximum number of registrations in interval
51     register: 3
52     # interval length for registration limit
53     register_per_second: 3600
54     # maximum number of image uploads in interval
55     image: 6
56     # interval length for image uploads
57     image_per_second: 3600
58   }
59   # settings related to activitypub federation
60   federation: {
61     # whether to enable activitypub federation. this feature is in alpha, do not enable in production.
62     enabled: false
63     # whether tls is required for activitypub. only disable this for debugging, never for producion.
64     tls_enabled: true
65     # comma separated list of instances with which federation is allowed
66     allowed_instances: ""
67     # comma separated list of instances which are blocked from federating
68     blocked_instances: ""
69   }
70   captcha: {
71     enabled: true
72     difficulty: medium # Can be easy, medium, or hard
73   }
74 #  # email sending configuration
75 #  email: {
76 #    # hostname and port of the smtp server
77 #    smtp_server: ""
78 #    # login name for smtp server
79 #    smtp_login: ""
80 #    # password to login to the smtp server
81 #    smtp_password: ""
82 #    # address to send emails from, eg "noreply@your-instance.com"
83 #    smtp_from_address: ""
84 #    # whether or not smtp connections should use tls
85 #    use_tls: true
86 #  }
87 }