2 # settings related to the postgresql database
4 # Configure the database by specifying a URI
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
10 # This example uses peer authentication to obviate the need for creating,
11 # configuring, and managing passwords.
13 # For an explanation of how to use connection URIs, see [here][0] in
14 # PostgreSQL's documentation.
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"
21 # Configure the database by specifying parts of a URI
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
28 # Password to connect to postgres
30 # Host where postgres is running
32 # Port where postgres can be accessed
34 # Name of the postgres database for lemmy
36 # Maximum number of active sql connections
39 # Settings related to activitypub federation
40 # Pictrs image server configuration.
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 )
47 # Email sending configuration. All options except login/password are mandatory
49 # Hostname and port of the smtp server
50 smtp_server: "localhost:25"
51 # Login name for smtp server
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
60 # Parameters for automatic configuration of new instance (only used at first start)
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"
71 # the domain name of your instance (mandatory)
73 # Address where lemmy should listen for incoming requests
75 # Port where lemmy should listen for incoming requests
77 # Whether the site is available over TLS. Needs to be true for federation to work.