1
1
# Configuration
2
2
3
+ > From v1.0.0, you can configure Memospot via the built-in interface,
4
+ > accessible from ` Application > Settings ` menu (` CtrlOrCmd ` +` , ` ). {style="note"}
5
+
3
6
Though there's no need for a regular user to ever touch this file,
4
7
some of the Memospot behavior can be configured via ` memospot.yaml ` .
5
8
6
- ## Configuration location
9
+ ## File location
7
10
8
11
- Linux/macOS:
9
12
@@ -36,7 +39,7 @@ some of the Memospot behavior can be configured via `memospot.yaml`.
36
39
37
40
# # Sample configuration file
38
41
39
- The fields that default to ` null` are detected at runtime.
42
+ Fields that default to ` null` are detected at runtime.
40
43
41
44
` ` ` yaml
42
45
memos:
@@ -72,14 +75,16 @@ memos:
72
75
# during Memospot startup.
73
76
port: 0
74
77
75
- # Custom environment variables for Memos.
76
- # Custom keys will be automatically uppercased
77
- # and prefixed with "MEMOS_".
78
- # Make sure to always quote custom env values,
79
- # so they get parsed as strings.
80
- # env:
81
- # NEW_ENV_VAR: "my value"
82
- env: null
78
+ env:
79
+ # Custom environment variables for Memos.
80
+ # https://www.usememos.com/docs/install/runtime-options
81
+ #
82
+ # Make sure to always quote custom env values,
83
+ # so they get parsed as strings.
84
+ enabled: false
85
+ vars:
86
+ MEMOS_DRIVER: ' postgres'
87
+ MEMOS_DSN: ' postgresql://root:password@localhost:5432/memos'
83
88
84
89
memospot:
85
90
backups:
@@ -89,6 +94,14 @@ memospot:
89
94
# Backup directory.
90
95
path: null
91
96
97
+ env:
98
+ # Custom environment variables for Memospot itself.
99
+ # May be used to override hardware acceleration on Linux.
100
+ enabled: false
101
+ vars:
102
+ WEBKIT_DISABLE_DMABUF_RENDERER: ' 0'
103
+ WEBKIT_DISABLE_COMPOSITING_MODE: ' 0'
104
+
92
105
migrations:
93
106
# Enable migrations [true]. These are database
94
107
# migrations that make upgrading Memos smoother.
@@ -109,24 +122,27 @@ memospot:
109
122
# Other web apps most likely won't pass the internal health check.
110
123
enabled: false
111
124
url: https://demo.usememos.com/
125
+ user_agent: ' Memospot/1.0.0'
112
126
113
127
updater:
114
128
# Enable auto-updater [true].
115
129
# - Added in v0.1.7.
130
+ # Can be used to disable the updater
131
+ # entirely and prevent notifications.
116
132
enabled: true
117
133
118
134
window:
119
135
# Window properties.
120
136
# - Added in v0.1.7.
121
- # Managed variables store the previous state upon app close.
137
+ # > Managed variables store the previous state upon app close.
122
138
123
139
# Whether the window should be centered upon creation. [true]
124
140
center: true
125
141
126
142
# Whether the window should be fullscreen upon creation. [false]
127
143
fullscreen: false
128
144
129
- # Whether the window should be resizable upon creation . [true]
145
+ # Whether the user can resize the window . [true]
130
146
resizable: true
131
147
132
148
# (Managed) Whether the window should be maximized upon creation.
@@ -143,4 +159,15 @@ memospot:
143
159
144
160
# (Managed) Window initial y position.
145
161
y: 0
162
+
163
+ # Hide the menu bar [false].
164
+ # * This setting is not available from the settings screen.
165
+ hide_menu_bar: false
166
+
167
+ # theme: [system] | light | dark
168
+ theme: system
169
+
170
+ # locale [system] | en | [pt-BR]
171
+ locale: system
172
+
146
173
` ` `
0 commit comments