This repository was archived by the owner on Feb 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_config.ini
More file actions
36 lines (29 loc) · 1.56 KB
/
example_config.ini
File metadata and controls
36 lines (29 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# The values set are the default, change them as you want and then restart the app
[App]
# If you plan to only use the web-app and not any other apps, you can change it to `127.0.0.1`
host = 0.0.0.0
port = 8000
# This is used for hashing passwords
# You should generate a secret by running
# $ openssl rand -hex 32
secret = no_secret
# Specifies if your instance is `private`, `public`, or `commercial`.
# `private` means that new accounts can only be created from an admin account,
# `public` means that everyone can create a new account with (for now) no limitations,
# `commercial` means that everyone can create a "free" account but there are limitation to what they can do.
# `private` (or `public`) is probably what you want.
# If you want to go with `commercial` you need to set up a payment system as well that will up/downgrade the users.
instance = private
# Usually just leave the default, sqlite is the only database supported right now
db url = sqlite://./mnemeapi/mneme.db
# mneme by default keeps deleted journals and entries for 7 days unless it's told to not keep them at all
# This is counted in days. If set to 0 then they will be deleted within 2 hours
delete after = 7
# This information is most important if the instance is private
# If the instance is public or commercial this user does get created but (for now) he is treated as a normal user.
# After the creation of the user if you change the username (here or from an app) a new user will be created.
[Admin User]
username = admin
password = 12345
# If this user's journals are encrypted or not
encrypted = false