]> Untitled Git - lemmy.git/blob - config/defaults.hjson
Moving settings to Database. (#2492)
[lemmy.git] / 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   # Settings related to activitypub federation
18   # Pictrs image server configuration.
19   pictrs: {
20     # Address where pictrs is available (for image hosting)
21     url: "http://pictrs:8080/"
22     # Set a custom pictrs API key. ( Required for deleting images )
23     api_key: "string"
24   }
25   # Email sending configuration. All options except login/password are mandatory
26   email: {
27     # Hostname and port of the smtp server
28     smtp_server: "localhost:25"
29     # Login name for smtp server
30     smtp_login: "string"
31     # Password to login to the smtp server
32     smtp_password: "string"
33     # Address to send emails from, eg noreply@your-instance.com
34     smtp_from_address: "noreply@example.com"
35     # Whether or not smtp connections should use tls. Can be none, tls, or starttls
36     tls_type: "none"
37   }
38   # Parameters for automatic configuration of new instance (only used at first start)
39   setup: {
40     # Username for the admin user
41     admin_username: "admin"
42     # Password for the admin user. It must be at least 10 characters.
43     admin_password: "tf6HHDS4RolWfFhk4Rq9"
44     # Name of the site (can be changed later)
45     site_name: "My Lemmy Instance"
46     # Email for the admin user (optional, can be omitted and set later through the website)
47     admin_email: "user@example.com"
48   }
49   # the domain name of your instance (mandatory)
50   hostname: "unset"
51   # Address where lemmy should listen for incoming requests
52   bind: "0.0.0.0"
53   # Port where lemmy should listen for incoming requests
54   port: 8536
55   # Whether the site is available over TLS. Needs to be true for federation to work.
56   tls_enabled: true
57 }