]> Untitled Git - lemmy.git/blob - config/defaults.hjson
Fix wrong SMTP port when TLS is being used (fixes #3574) (#3607)
[lemmy.git] / config / defaults.hjson
1 {
2   # settings related to the postgresql database
3   database: {
4     # Configure the database by specifying a URI
5     # 
6     # This is the preferred method to specify database connection details since
7     # it is the most flexible.
8     # Connection URI pointing to a postgres instance
9     # 
10     # This example uses peer authentication to obviate the need for creating,
11     # configuring, and managing passwords.
12     # 
13     # For an explanation of how to use connection URIs, see [here][0] in
14     # PostgreSQL's documentation.
15     # 
16     # [0]: https://www.postgresql.org/docs/current/libpq-connect.html#id-1.7.3.8.3.6
17     uri: "postgresql:///lemmy?user=lemmy&host=/var/run/postgresql"
18
19     # or
20
21     # Configure the database by specifying parts of a URI
22     # 
23     # Note that specifying the `uri` field should be preferred since it provides
24     # greater control over how the connection is made. This merely exists for
25     # backwards-compatibility.
26     # Username to connect to postgres
27     user: "string"
28     # Password to connect to postgres
29     password: "string"
30     # Host where postgres is running
31     host: "string"
32     # Port where postgres can be accessed
33     port: 123
34     # Name of the postgres database for lemmy
35     database: "string"
36     # Maximum number of active sql connections
37     pool_size: 5
38   }
39   # Settings related to activitypub federation
40   # Pictrs image server configuration.
41   pictrs: {
42     # Address where pictrs is available (for image hosting)
43     url: "http://localhost:8080/"
44     # Set a custom pictrs API key. ( Required for deleting images )
45     api_key: "string"
46   }
47   # Email sending configuration. All options except login/password are mandatory
48   email: {
49     # Hostname and port of the smtp server
50     smtp_server: "localhost:25"
51     # Login name for smtp server
52     smtp_login: "string"
53     # Password to login to the smtp server
54     smtp_password: "string"
55     # Address to send emails from, eg "noreply@your-instance.com"
56     smtp_from_address: "noreply@example.com"
57     # Whether or not smtp connections should use tls. Can be none, tls, or starttls
58     tls_type: "none"
59   }
60   # Parameters for automatic configuration of new instance (only used at first start)
61   setup: {
62     # Username for the admin user
63     admin_username: "admin"
64     # Password for the admin user. It must be at least 10 characters.
65     admin_password: "tf6HHDS4RolWfFhk4Rq9"
66     # Name of the site (can be changed later)
67     site_name: "My Lemmy Instance"
68     # Email for the admin user (optional, can be omitted and set later through the website)
69     admin_email: "user@example.com"
70   }
71   # the domain name of your instance (mandatory)
72   hostname: "unset"
73   # Address where lemmy should listen for incoming requests
74   bind: "0.0.0.0"
75   # Port where lemmy should listen for incoming requests
76   port: 8536
77   # Whether the site is available over TLS. Needs to be true for federation to work.
78   tls_enabled: true
79   # The number of activitypub federation workers that can be in-flight concurrently
80   worker_count: 0
81   # The number of activitypub federation retry workers that can be in-flight concurrently
82   retry_count: 0
83   prometheus: {
84     bind: "127.0.0.1"
85     port: 10002
86   }
87 }