forked from szabodanika/microbin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.env
225 lines (186 loc) · 7.79 KB
/
.env
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
# DISCLAIMER
# (c) 2024-05-27 Mario Stöckl - derived from the original Microbin Project by Daniel Szabo
#
# Require username for HTTP Basic Authentication when
# visiting the service. If basic auth username is set but
# basic auth password is not, just leave the password field
# empty when logging in. You can also just go to
# https://username:[email protected] or
# https://[email protected] if password is not set
# instead of typing into the password
# Default value: unset
# export BITVAULT_BASIC_AUTH_USERNAME=
# Require password for HTTP Basic Authentication when
# visiting the service. Will not have any affect unless
# basic auth username is also set. If basic auth username is
# set but basic auth password is not, just leave the
# password field empty when logging in. You can also just go
# to https://username:[email protected] or
# https://[email protected] if password is not set
# instead of typing into the password prompt.
# Default value: unset
# export BITVAULT_BASIC_AUTH_PASSWORD=
# Enables administrator interface at yourserver.com/admin/
# if set, disables it if unset. If admin username is set but
# admin password is not, just leave the password field empty
# when logging in.
# Default value: admin
export BITVAULT_ADMIN_USERNAME=admin
# Enables administrator interface at yourserver.com/admin/
# if set, disables it if unset. Will not have any affect
# unless admin username is also set. If admin username is
# set but admin password is not, just leave the password
# field empty when logging in.
# Default value: b1tv4u1t
export BITVAULT_ADMIN_PASSWORD=b1tv4u1t
# Enables editable pastas. You will still be able to make
# finalised pastas but there will be an extra option to
# make your new pasta editable from the pasta list or the
# pasta view page.
# Default value: true
export BITVAULT_EDITABLE=true
# Replaces the default footer text with your own. If you
# want to hide the footer, use the hide footer option instead.
# Note that you can also embed HTML here, so you may want to escape
# '<', '>' and so on.
# export BITVAULT_FOOTER_TEXT=
# Hides the navigation bar on every page.
# Default value: 8080
export BITVAULT_HIDE_HEADER=false
# Hides the footer on every page.
# Default value: 8080
export BITVAULT_HIDE_FOOTER=false
# Hides the BitVault logo from the navigation bar on every
# page.
# Default value: 8080
export BITVAULT_HIDE_LOGO=false
# Disables the /pastalist endpoint, essentially making all
# pastas private.
# Default value: false
export BITVAULT_NO_LISTING=false
# Enables syntax highlighting support. When creating a new
# pasta, a new dropdown selector will be added where you can
# select your pasta's syntax, or just leave it empty for no
# highlighting.
export BITVAULT_HIGHLIGHTSYNTAX=true
# Sets the port for the server will be listening on.
# Default value: 8080
export BITVAULT_PORT=8080
# Sets the bind address for the server will be listening on.
# Both ipv4 and ipv6 are supported. Default value: "0.0.0.0".
# Example value: "myserver.net", "127.0.0.1".
export BITVAULT_BIND="0.0.0.0"
# Enables private pastas. Adds a new checkbox to make your
# pasta private, which then won't show up on the pastalist
# page. With the URL to your pasta, it will still be
# accessible.
# Default value: true
export BITVAULT_PRIVATE=true
# Sets the name of the directory where BitVault creates
# its database and stores attachments.
# Default value: bitvault_data
export BITVAULT_DATA_DIR="bitvault_data"
# Enables storing pasta data (not attachments and files) in
# a JSON file instead of the SQLite database.
# Default value: false
export BITVAULT_JSON_DB=false
# Add the given public path prefix to all urls. This allows
# you to host BitVault behind a reverse proxy on a subpath.
# Note that BitVault itself still expects all routes to be
# as without this option, and thus is unsuited if you are
# running BitVault directly. Default value: unset. Example
# values: https://myserver.com/ or https://192.168.0.10:8080/
# export BITVAULT_PUBLIC_PATH=""
# Sets a shortened path to use when the user copies URL from
# the application. This will also use shorter endpoints,
# such as /p/ instead if /pasta/. Default value:
# unset.Example value: https://b.in/ export
# BITVAULT_SHORT_PATH=
# The password required for uploading, if read-only mode is enabled
# Default value: unset
# export BITVAULT_UPLOADER_PASSWORD=
# If set to true, authentication required for uploading
# Default value: false
export BITVAULT_READONLY=false
# Enables showing read count on pasta pages.
# Default value: true
export BITVAULT_SHOW_READ_STATS=true
# Adds your title of choice to the
# navigation bar.
# Default value: unset
# export BITVAULT_TITLE=
# Number of workers BitVault is allowed to have. Increase
# this to the number of CPU cores you have if you want to go
# beast mode, but for personal use one worker is enough.
# Default value: 1.
export BITVAULT_THREADS=1
# Sets the garbage collector time limit. Pastas not accessed
# for N days are removed even if they are set to never
# expire.
# Default value: 90.
# To turn off GC: 0.
export BITVAULT_GC_DAYS=90
# Enables or disables the "Burn after" function
# Default value: false
export BITVAULT_ENABLE_BURN_AFTER=true
# Sets the default burn after setting on the main screen.
# Default value: 0. Available expiration options: 1, 10,
# 100, 1000, 10000, 0 (= no limit)
export BITVAULT_DEFAULT_BURN_AFTER=0
# Changes the maximum width of the UI from 720 pixels to
# 1080 pixels.
# Default value: true
export BITVAULT_WIDE=true
# Enables generating QR codes for pastas. Requires
# the public path to also be set.
# Default value: false
export BITVAULT_QR=true
# Toggles "Never" expiry settings for pastas. Default
# value: true
export BITVAULT_ETERNAL_PASTA=true
# Enables "Read-only" uploads. These are unlisted and
# unencrypted, but can be viewed without password if you
# have the URL. Editing and removing requires password.
# Default value: true
export BITVAULT_ENABLE_READONLY=true
# Sets the default expiry time setting on the main screen.
# Default value: 24hour Available expiration options: 1min,
# 10min, 1hour, 24hour, 1week, never
export BITVAULT_DEFAULT_EXPIRY=24hour
# Disables and hides the file upload option in the UI.
# Default value: false
export BITVAULT_NO_FILE_UPLOAD=false
# Replaced the built-in water.css stylesheet with the URL
# you provide. Default value: unset. Example value:
# https://myserver.net/public/mystyle.css
# export BITVAULT_CUSTOM_CSS=
# Use short hash strings in the URLs instead of animal names
# to make URLs shorter. Does not change the underlying data
# stored, just how pastas are recalled.
# Default value: false
export BITVAULT_HASH_IDS=false
# Enables server-side encryption. This will add private
# privacy level, where the user sends plain unencrypted data
# (still secure, because you use HTTPS, right?), but the
# server sees everything that the user submits, therefore
# the user does not have complete and absolute protection.
# Default value: false
export BITVAULT_ENCRYPTION_CLIENT_SIDE=true
# Enables client-side encryption. This will add the secret
# privacy level where the user's browser encrypts all data
# with JavaScript before sending it over to BitVault, which
# encrypt the data once again on server side.
# Default value: false
export BITVAULT_ENCRYPTION_SERVER_SIDE=true
# Limit the maximum file size users can upload without
# encryption. Default value: 256.
export BITVAULT_MAX_FILE_SIZE_ENCRYPTED_MB=256
# Limit the maximum file size users can upload with
# encryption (more strain on your server than without
# encryption, so the limit should be lower. Secrets tend to
# be tiny files usually anyways.) Default value: 2048.
export BITVAULT_MAX_FILE_SIZE_UNENCRYPTED_MB=2048
# Disables the feature that checks for available updates
# when opening the admin screen.
# Default value: false
# export BITVAULT_DISABLE_UPDATE_CHECKING=false