forked from photostructure/photostructure-for-servers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefaults.env
1533 lines (1257 loc) · 51.2 KB
/
defaults.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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#
# Welcome to PhotoStructure! These are the settings for version 0.9.1.
#
# Please see <https://photostructure.com/environment-variables> for more
# information about using environment variables with PhotoStructure.
#
# PLEASE NOTE: PhotoStructure does not read the contents of this
# "defaults.env" (or any ".env" variant).
#
# The following settings categories are stored in the system settings.toml:
#
# * System.Logging
# * System.Paths
# * System.Processes
# * System.Tools
# * System.Updates
# * System.Volumes
#
# The following settings categories are stored in the library settings.toml:
#
# * Library.Db
# * Library.Filters
# * Library.Networking
# * Library.Previews
# * Library.Reporting
# * Library.Sync
# * Library.Tagging
# * Library.Web
#
# Please email <[email protected]> if you find anything that may be a
# bug or have any questions, ideas, or feedback. We'd love to hear from you!
#
##############################################################################
#
# Settings for System.paths:
#
# +–––––––––––––––––––––––+
# | copyAssetsToLibrary |
# +–––––––––––––––––––––––+
#
# Should PhotoStructure copy photos and videos to your PhotoStructure Library?
# This setting holds the value for the welcome page's "May PhotoStructure
# organize your photos and videos?" section. Read more about this setting
# here:
# <https://photostructure.com/getting-started/automatic-library-organization/>.
#
# PS_COPY_ASSETS_TO_LIBRARY="true"
# +–––––––––––––––+
# | libraryPath |
# +–––––––––––––––+
#
# This is the absolute path to your PhotoStructure library. If missing, or set
# to an empty string, the welcome page will be shown when PhotoStructure
# launches. Use native file separators (so on windows, use back-slashes).
#
# Aliases: PS_LIBRARY,PS_LIBRARY_DIR
#
# PS_LIBRARY_PATH=
# +–––––––––––––––––+
# | scanAllDrives |
# +–––––––––––––––––+
#
# Should PhotoStructure scan all folders on all drives available to this
# computer for photos and videos?
#
# PS_SCAN_ALL_DRIVES="true"
# +––––––––––––––––––+
# | scanMyPictures |
# +––––––––––––––––––+
#
# Deprecated, and will be removed in the next version. If set, PhotoStructure
# will automatically add your pictures directory to your `scanPaths` setting.
#
# PS_SCAN_MY_PICTURES="false"
# +–––––––––––––+
# | scanPaths |
# +–––––––––––––+
#
# This holds an array of absolute paths to scan for assets. If you are setting
# this via an environment variable, you may use either standard PATH
# formatting, like `PS_SCAN_PATHS="/path/one:/path/two"`, or use JSON
# encoding, like `PS_SCAN_PATHS='["/path/one","/path/two"]'`.
#
# PS_SCAN_PATHS=
# +––––––––––––+
# | cacheDir |
# +––––––––––––+
#
# Where would you like PhotoStructure's scratch file directory? This must be a
# fast, local disk with several gigabytes free. Note that if
# PS_FORCE_LOCAL_DB_REPLICA is enabled, the local DB replica will be stored in
# this directory.
#
# PS_CACHE_DIR="$HOME/.cache/photostructure"
# +–––––––––––––––––––––––+
# | forceLocalDbReplica |
# +–––––––––––––––––––––––+
#
# Libraries on remote filesystems can suffer from bad performance and
# inconsistent transactions due to slow file I/O and missing file locking
# mechanics. When opening libraries on remote filesystems, or if this setting
# is `true`, PhotoStructure will copy the library database to the `cacheDir`
# and perform I/O against this local replica. Changes made to the local db
# replica are then periodically copied back to the remote library.
#
# PS_FORCE_LOCAL_DB_REPLICA="false"
# +––––––––––––––––+
# | neverIgnored |
# +––––––––––––––––+
#
# Paths to files or directories that should not be ignored, even if they are
# hidden or have .nomedia files.
#
# PS_NEVER_IGNORED=
# +–––––––––––+
# | pidfile |
# +–––––––––––+
#
# This is the absolute path to the PID file for the main process. This is
# optional and only used by PhotoStructure for Servers.
#
# Aliases: PIDFILE
#
# PS_PIDFILE=
# +––––––––––––––––––––+
# | scanLibraryFirst |
# +––––––––––––––––––––+
#
# Should PhotoStructure scan your library before all other paths are
# synchronized?
#
# PS_SCAN_LIBRARY_FIRST="false"
# +–––––––––––––––––––+
# | scanLibraryLast |
# +–––––––––––––––––––+
#
# Should PhotoStructure scan your library after all other paths are
# synchronized?
#
# PS_SCAN_LIBRARY_LAST="true"
##############################################################################
#
# Settings for System.logging:
#
# +––––––––––––+
# | logColor |
# +––––––––––––+
#
# Output all logs with terminal escape codes to colorize output. If NO_COLOR
# is set, this defaults to false. See <https://no-color.org/>.
#
# PS_LOG_COLOR="true"
# +––––––––––––––––––+
# | logCompression |
# +––––––––––––––––––+
#
# Should log files be compressed as they are rotated?
#
# PS_LOG_COMPRESSION="true"
# +––––––––––+
# | logDir |
# +––––––––––+
#
# Determines the directory that log files will be written to.
#
# PS_LOG_DIR="$HOME/.config/PhotoStructure/logs"
# +––––––––––––––––+
# | logElapsedMs |
# +––––––––––––––––+
#
# Prefix log entries by a timestamp (if set to false), or by the number of
# milliseconds since startup (if set to true).
#
# PS_LOG_ELAPSED_MS="false"
# +––––––––––––+
# | logLevel |
# +––––––––––––+
#
# Determines which level of log messages are emitted to log files. May be
# 'debug', 'info', 'warn', 'error', or a log level followed by a context (like
# 'debug:rpc').
#
# Aliases: PS_LOG,LOG
#
# PS_LOG_LEVEL="error"
# +––––––––––+
# | logSql |
# +––––––––––+
#
# Log SQL queries to the default log level. *This is really chatty* and
# impacts performance. Normally these log messages are completely disabled.
#
# PS_LOG_SQL="false"
# +–––––––––––––+
# | logWebDir |
# +–––––––––––––+
#
# Determines the directory that log files will be written to. If unset, will
# use logDir.
#
# PS_LOG_WEB_DIR=
# +––––––––––––––––––+
# | logWebRequests |
# +––––––––––––––––––+
#
# Write an access log for all web requests?
#
# PS_LOG_WEB_REQUESTS="false"
# +–––––––––––––––+
# | previewsDir |
# +–––––––––––––––+
#
# This is the directory that PhotoStructure uses to store preview images. This
# defaults to the ".photostructure/previews" directory inside your
# PhotoStructure library. Absolute paths here are supported, but if you keep
# your library and previews directory separated, take care when you open your
# library on different computers, as this setting needs to be adjusted for
# those computers as well.
#
# PS_PREVIEWS_DIR=".photostructure/previews"
##############################################################################
#
# Settings for System.processes:
#
# +––––––––––––––+
# | autoLaunch |
# +––––––––––––––+
#
# Set to true to have PhotoStructure start automatically on login. Only
# supported on PhotoStructure for Desktops on macOS and Windows 10.
#
# PS_AUTO_LAUNCH="false"
# +–––––––––––––––––+
# | bounceMinutes |
# +–––––––––––––––––+
#
# PhotoStructure will bounce the web and sync processes periodically. Set to 0
# to disable.
#
# PS_BOUNCE_MINUTES="300"
# +––––––––––––––––––+
# | cpuLoadPercent |
# +––––––––––––––––––+
#
# PhotoStructure runs many things in parallel during library synchronization.
# The maximum number of concurrent file imports that PhotoStructure will
# schedule at a time will be the number of CPUs that this system has
# multiplied by this percent. A higher value here will allow PhotoStructure to
# run more tasks in parallel, but may impact your system's responsiveness. 75%
# should be a reasonable balance between keeping your system responsive and
# importing your library quickly. Setting this value to 0 will still allow 1
# task to run concurrently. System memory will also be taken into account to
# try to prevent swapping.
#
# Min value: 0
# Max value: 200
#
# PS_CPU_LOAD_PERCENT="75"
# +–––––––––––––––––––––––––––+
# | fatalErrorRatePerMinute |
# +–––––––––––––––––––––––––––+
#
# If PhotoStructure sees errors at a higher rate per minute than this setting,
# PhotoStructure will shut down. If this value is too high, PhotoStructure may
# look busy, but it's just busyfailing. If this value is set too low,
# temporary errors (due to network flakiness or USB hiccups) might shut down
# PhotoStructure needlessly.
#
# PS_FATAL_ERROR_RATE_PER_MINUTE="10"
# +–––––––––––––––+
# | maxMemoryMb |
# +–––––––––––––––+
#
# PhotoStructure will restart services if they use more than this value
# (measured in megabytes, or 1,000,000 bytes). Note that this is not the
# allocated memory. See maxRssMemoryMb for total allocated.
#
# Min value: 256
# Max value: 8000
#
# PS_MAX_MEMORY_MB="500"
# +––––––––––––––––––+
# | maxRssMemoryMb |
# +––––––––––––––––––+
#
# PhotoStructure will restart services if their' resident set size consumes
# more than this value (measured in megabytes, or 1,000,000 bytes).
#
# Min value: 250
# Max value: 8000
#
# PS_MAX_RSS_MEMORY_MB="1000"
# +––––––––––––––––––––––+
# | maxTasksPerProcess |
# +––––––––––––––––––––––+
#
# PhotoStructure will recycle sync-file processes after they handle this
# number of requests. Smaller values may reduce overall memory pressure.
# Larger values amortize startup costs over fewer restarts.
#
# Min value: 1
# Max value: 5000
#
# PS_MAX_TASKS_PER_PROCESS="200"
# +–––––––––––––––––+
# | minDiskFreeGb |
# +–––––––––––––––––+
#
# PhotoStructure will pause processing if the GB free on the disk that your
# library is stored on drops below this value. The value provided here will be
# multiplied by 1000^3. Note that many OSes will corrupt themselves when disks
# fill up, and SSDs can fail as they approach full capacity. A value of less
# than 8 may be unsafe (due to hibernation and os update files).
#
# PS_MIN_DISK_FREE_GB="6"
# +–––––––––––––––––––––––––––––––––––+
# | minTimeBetweenServiceRestartsMs |
# +–––––––––––––––––––––––––––––––––––+
#
# If a service (like web, sync, or sync-file) is restarted due to an error,
# how many ms must elapse before another restart is allowed? This helps
# prevent system load due to service flapping.
#
# PS_MIN_TIME_BETWEEN_SERVICE_RESTARTS_MS="7000"
# +––––––––––––––––––+
# | pollIntervalMs |
# +––––––––––––––––––+
#
# The number of milliseconds we wait between polling for changes in remote
# filesystems. This defaults to 1 minute, to minimize remote filesystem load.
#
# PS_POLL_INTERVAL_MS="60000"
# +–––––––––––––––+
# | probationMs |
# +–––––––––––––––+
#
# Normally when subsystems crash, PhotoStructure restarts them after a delay.
# Unfortunately, if there is a persistent error, this means PhotoStructure
# keeps trying something that won't ever work; it looks busy, but it's just
# busy failing. To prevent this situation, PhotoStructure will shut down if
# there are high error rates within 2 minutes of starting. (2 minutes should
# be long enough to spin up the web process, sync process, and import at least
# one pending file). Setting this to 0 will prevent PhotoStructure from
# exiting due to high error rates.
#
# PS_PROBATION_MS="120000"
# +–––––––––––––––––––+
# | processPriority |
# +–––––––––––––––––––+
#
# By default, PhotoStructure runs child processes with a "below normal"
# priority, so your system remains usable while imports run. Changing this
# value to "normal" or "above normal" may speed up imports but cause your
# system to be unresponsive. Changing this value to "idle" may prevent imports
# from running at all.
#
# Valid values: AboveNormal,Normal,BelowNormal,Idle
#
# PS_PROCESS_PRIORITY="BelowNormal"
# +––––––––––––––––––+
# | setupTimeoutMs |
# +––––––––––––––––––+
#
# To prevent unhealthy services running as zombies, they self-terminate if the
# setup processes are not complete within this amount of time. Note that only
# the environment variable value is used for this setting.
#
# PS_SETUP_TIMEOUT_MS="35000"
##############################################################################
#
# Settings for System.tools:
#
# +––––––––––––––+
# | enableSIMD |
# +––––––––––––––+
#
# Should PhotoStructure enable SIMD extensions when running image operations?
# This defaults to false on macOS due to instability on that platform.
#
# PS_ENABLE_SIMD="true"
# +–––––––––––––––––––+
# | enableVipsCache |
# +–––––––––––––––––––+
#
# Should PhotoStructure enable VIPS caching, which may help speed up image
# operations? This defaults to false to reduce memory consumption.
#
# PS_ENABLE_VIPS_CACHE="false"
# +––––––––––––––+
# | ffmpegPath |
# +––––––––––––––+
#
# This should be the absolute, native path to the "ffmpeg" binary on this
# system. If this is set to "ffmpeg", PhotoStructure will search your $PATH.
# PhotoStructure prefers using ffmpeg to vlc.
#
# PS_FFMPEG_PATH="ffmpeg"
# +–––––––––––––––––––––+
# | powerShellCulture |
# +–––––––––––––––––––––+
#
# If set to a non-blank value, PhotoStructure on Windows machines will set
# PowerShell's `[System.Threading.Thread]::CurrentThread.CurrentCulture` to
# this value. This allows PhotoStructure to parse PowerShell output reliably.
#
# PS_POWER_SHELL_CULTURE="en-US"
# +–––––––––––––+
# | toolPaths |
# +–––––––––––––+
#
# These paths are appended to the PATH to ensure PhotoStructure can find and
# run external tools like ffmpeg. Use your operating system's separator to
# separate paths (":" for mac and linux, ";" for windows).
#
# PS_TOOL_PATHS="[\"/usr/local/sbin\",\"/usr/local/bin\",\"/opt/local/sbin\",\"/opt/local/bin\",\"/usr/sbin\",\"/usr/bin\",\"/sbin\",\"/bin\"]"
# +–––––––––––+
# | vlcPath |
# +–––––––––––+
#
# This should be the absolute, native path to the "vlc" binary on this system.
# If this is set to "vlc", PhotoStructure will search your $PATH.
#
# PS_VLC_PATH="vlc"
##############################################################################
#
# Settings for System.updates:
#
# +–––––––––––––––––+
# | updateChannel |
# +–––––––––––––––––+
#
# TL:DR; keep this on "latest." This setting only applies to PhotoStructure
# for Desktops, and controls which builds of PhotoStructure you are eligible
# to automatically update to. Please note that "alpha" builds may not even
# launch, and "beta" builds have not been thoroughly tested. Please only
# consider changing this if customer support asks you to, and that you have
# recent backups of your system.
#
# Valid values: alpha,beta,latest
#
# PS_UPDATE_CHANNEL="latest"
# +––––––––––––––––––––––+
# | updateCheckMinutes |
# +––––––––––––––––––––––+
#
# While running, PhotoStructure will check periodically for updates. The
# default is daily.
#
# PS_UPDATE_CHECK_MINUTES="1440"
# +––––––––––––––––––+
# | updateOnLaunch |
# +––––––––––––––––––+
#
# If true, PhotoStructure will check for updates automatically on launch.
#
# PS_UPDATE_ON_LAUNCH="true"
##############################################################################
#
# Settings for System.volumes:
#
# +–––––––––––––––––––––––+
# | readVolumeUuidFiles |
# +–––––––––––––––––––––––+
#
# When true, PhotoStructure uses ".uuid" files found in the root directory of
# volumes as the volume UUID, which can help with cross-host library
# portability. Set this to false if you don't want PhotoStructure to read
# these ".uuid" files. See https://photostructure.com/faq/what-is-a-volume for
# more information.
#
# PS_READ_VOLUME_UUID_FILES="true"
# +–––––––––––––––––––––––+
# | validateMountpoints |
# +–––––––––––––––––––––––+
#
# When true, PhotoStructure ignores volumes whose mountpoints do not exist.
#
# PS_VALIDATE_MOUNTPOINTS="true"
# +––––––––––––––––––––––––+
# | writeVolumeUuidFiles |
# +––––––––––––––––––––––––+
#
# When true, PhotoStructure (tries to) write ".uuid" files into the root
# directory of volumes, which enables cross-host library portability. Set this
# to false if you don't want PhotoStructure to try to write these ".uuid"
# files. See https://photostructure.com/faq/what-is-a-volume for more
# information.
#
# PS_WRITE_VOLUME_UUID_FILES="true"
##############################################################################
#
# Settings for Library.networking:
#
# +––––––––––––––––+
# | cspDirective |
# +––––––––––––––––+
#
# If you're seeing CSP errors with older browsers, add your
# externally-available base URL to this setting, and it will be appended to
# the CSP directives. See
# <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src>.
#
# PS_CSP_DIRECTIVE=
# +–––––––––––––––––+
# | cspReportOnly |
# +–––––––––––––––––+
#
# Only report CSP violations. See
# <https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP>.
#
# PS_CSP_REPORT_ONLY="false"
# +––––––––––––––––––––––––––––+
# | exposeNetworkWithoutAuth |
# +––––––––––––––––––––––––––––+
#
# Normally the web service is only accessible to the computer running
# PhotoStructure. Setting this to true will expose your library to all
# computers on your network. You should own or trust all systems on that
# network, as there is no auth in PhotoStructure currently. Future versions of
# PhotoStructure will add authorization mechanisms, at which point this
# setting will be deleted.
#
# **Don't enable this unless you know what you are doing**.
#
# PS_EXPOSE_NETWORK_WITHOUT_AUTH="false"
# +––––––––––––+
# | httpPort |
# +––––––––––––+
#
# Network port for HTTP access to your PhotoStructure library.
#
# PS_HTTP_PORT="1787"
# +–––––––––––––+
# | localhost |
# +–––––––––––––+
#
# If "exposeNetworkWithoutAuth" is false, what value should PhotoStructure use
# for localhost? (Some firewalls are OK with "127.0.0.1", some require
# "localhost"). See <https://letsencrypt.org/docs/certificates-for-localhost/>
# and
# <https://photostructure.com/faq/troubleshooting/#windows-firewall-issues>.
#
# PS_LOCALHOST="127.0.0.1"
# +–––––––––––+
# | rpcPort |
# +–––––––––––+
#
# Network port for rpc access to your PhotoStructure library. Only binds to
# loopback (even if exposeNetworkWithoutAuth is true).
#
# PS_RPC_PORT="1807"
##############################################################################
#
# Settings for Library.db:
#
# +–––––––––––––––––––––––––––+
# | dbBackupIntervalMinutes |
# +–––––––––––––––––––––––––––+
#
# How many minutes should elapse between backing of your library database?
# Note that PhotoStructure vacuums and optimizes the database before a backup
# is taken. You want this period to be frequent enough such that data loss
# isn't too painful. Note that backups can cause the webserver to be
# momentarily unresponsive. Default is every hour.
#
# Min value: 0.5
# Max value: 720
#
# PS_DB_BACKUP_INTERVAL_MINUTES="30"
# +––––––––––––––––––+
# | dbBackupsCount |
# +––––––––––––––––––+
#
# How many prior backups should PhotoStructure retain? These will typically be
# 10-500 MB, depending on the size of your library.
#
# PS_DB_BACKUPS_COUNT="20"
# +–––––––––––––––––––––+
# | dbBatchSelectSize |
# +–––––––––––––––––––––+
#
# How many objects can be selected at at time? The default should be fine.
# (Exposed for performance tests).
#
# Min value: 1
# Max value: 900
#
# PS_DB_BATCH_SELECT_SIZE="128"
# +–––––––––––––––––––––+
# | dbBatchUpsertSize |
# +–––––––––––––––––––––+
#
# How many objects can be upserted at at time? The default should be fine.
# (Exposed for performance tests).
#
# Min value: 1
# Max value: 500
#
# PS_DB_BATCH_UPSERT_SIZE="16"
# +–––––––––––––––––+
# | dbCacheSizeMb |
# +–––––––––––––––––+
#
# PhotoStructure uses SQLite, and the cache_size pragma should ideally be set
# such that the whole DB can be in memory. See
# https://sqlite.org/pragma.html#pragma_cache_size for more information.
#
# PS_DB_CACHE_SIZE_MB="192"
# +–––––––––––––––+
# | dbTimeoutMs |
# +–––––––––––––––+
#
# SQLite can time out requests if the db file is unavailable. PhotoStructure
# will retry those requests (up to `maxBusyDbMs`). A shorter time may help
# overall throughput, but may require more work done in retry logic. A longer
# time may be better for slower machines and slower disks. Note that setting
# this value to be lower than disk I/O latency (~1ms-100ms) will cause all
# database queries to fail.
#
# PS_DB_TIMEOUT_MS="1000"
# +–––––––––––––––+
# | maxBusyDbMs |
# +–––––––––––––––+
#
# SQLite supports concurrent readers but concurrent writers may collide,
# causing a LOCKED or BUSY error. PhotoStructure will retry the db operation
# for maxBusyDbMs milliseconds. This defaults to 1 minute, which seems like a
# long time, but hard drives and network filesystems can take 10-20 seconds to
# spin up if asleep.
#
# PS_MAX_BUSY_DB_MS="120000"
##############################################################################
#
# Settings for Library.filters:
#
# +–––––––––––––––––––––––––+
# | maxAssetFileSizeBytes |
# +–––––––––––––––––––––––––+
#
# What's the maximum photo or video size you want imported into your library?
# (This can prevent movies from being pulled into and filling up your
# library).
#
# Aliases: PS_MAX_ASSET_SIZE_BYTES,PS_MAX_ASSET_SIZE,PS_MAX_FILE_SIZE_BYTES
#
# PS_MAX_ASSET_FILE_SIZE_BYTES="500000000"
# +–––––––––––––––––––––––––+
# | minAssetFileSizeBytes |
# +–––––––––––––––––––––––––+
#
# What's the minimum photo or video size you want imported into your library?
# (This can prevent small GIFs and screenshots from being imported).
#
# Aliases: PS_MIN_ASSET_SIZE_BYTES,PS_MIN_ASSET_SIZE,PS_MIN_FILE_SIZE_BYTES
#
# PS_MIN_ASSET_FILE_SIZE_BYTES="50000"
# +–––––––––––––––––––––+
# | minImageDimension |
# +–––––––––––––––––––––+
#
# What's the minimum number of pixels an image's dimensions must meet or
# exceed to be imported? Note that this value is applied to both the height
# and width of the image. The default comes from the VGA standard of 640x480.
#
# PS_MIN_IMAGE_DIMENSION="480"
# +–––––––––––––––––––––+
# | minVideoDimension |
# +–––––––––––––––––––––+
#
# What's the minimum number of pixels a video's dimensions must meet or exceed
# to be imported? Note that this value is applied to both the height and width
# of the video. The default comes from the QVGA standard of 320x240.
#
# PS_MIN_VIDEO_DIMENSION="240"
# +–––––––––––––––––––––––+
# | minVideoDurationSec |
# +–––––––––––––––––––––––+
#
# What's the minimum number of seconds for a video to be imported?
#
# PS_MIN_VIDEO_DURATION_SEC="2"
# +––––––––––––––––––––+
# | requireMakeModel |
# +––––––––––––––––––––+
#
# Normally PhotoStructure requires images to have an EXIF tags for Make and
# Model. This prevents unwanted preview images from other photo apps and
# screenshots from being imported. If you have images you want in your library
# that don't have these tags, set this to false. Note that this is ignored for
# video files, as those files seldom have Make and Model set (and would
# prevent most video files from being imported).
#
# PS_REQUIRE_MAKE_MODEL="false"
##############################################################################
#
# Settings for Library.previews:
#
# +––––––––––––––––––––––+
# | iccProfileMappings |
# +––––––––––––––––––––––+
#
# Maps an original image profile to a filename stored in the "icc" directory.
# See that directory's _info.md for more information about this settings.
#
# PS_ICC_PROFILE_MAPPINGS="[\"Display P3:DisplayP3Compat-v2-magic.icc\",\"Adobe RGB:AdobeCompat-v2.icc\"]"
# +––––––––––––––––––––––+
# | previewResolutions |
# +––––––––––––––––––––––+
#
# This controls the resolutions that PhotoStructure creates for every asset.
# Note that resolutions will be skipped if there already is a preview value
# with 2.5x the megapixels, so even though there are a lot of sizes here,
# you'll only see 3-4 images on your disk per asset.
#
# Valid values: uhd8k,uhd5k,uhd4k,qhd,fhd,hd,wvga,qvga,qqvga
#
# PS_PREVIEW_RESOLUTIONS="[\"uhd4k\",\"qhd\",\"fhd\",\"hd\",\"wvga\",\"qvga\"]"
# +–––––––––––––––+
# | progressive |
# +–––––––––––––––+
#
# Should preview JPEGs be progressively encoded? If set, thumbnails will take
# ~15% longer to generate, but FHD/QHD/UHD previews will be smaller.
#
# PS_PROGRESSIVE="true"
# +–––––––––––+
# | sharpen |
# +–––––––––––+
#
# Should previews be sharpened? This can make the images "pop" a bit more, but
# almost doubles the time it takes to make the thumbnails.
#
# PS_SHARPEN="false"
# +––––––––––––––––+
# | skipPreviews |
# +––––––––––––––––+
#
# No previews will be built. The UI will be broken if this is set..
#
# PS_SKIP_PREVIEWS="false"
# +–––––––––––––––––––––––+
# | squareThumbStrategy |
# +–––––––––––––––––––––––+
#
# When PhotoStructure crops images and videos to square thumbnails, it needs
# to crop non-square images to a square. The default, "attention," focuses on
# faces and higher image energy, but is more expensive than simply cropping to
# the center of the image (which is faster, but will mean less-nice cropping,
# where faces are chopped in half). More details are available here:
# <https://sharp.pixelplumbing.com/api-resize>.
#
# Valid values: center,entropy,attention
#
# PS_SQUARE_THUMB_STRATEGY="attention"
# +–––––––––––––––––––––––+
# | useEmbeddedPreviews |
# +–––––––––––––––––––––––+
#
# Should embedded image previews be used when available? This speeds up image
# preview generation, but if the embedded image doesn't match the full-sized
# image, the image preview will be incorrect.
#
# PS_USE_EMBEDDED_PREVIEWS="true"
# +–––––––––––––––––––––––––+
# | useEmbeddedThumbnails |
# +–––––––––––––––––––––––––+
#
# Should embedded image thumbnails be used when available? This speeds up
# image hashing, but if the embedded image thumbnail doesn't match the
# full-sized image, the image hash will be incorrect.
#
# PS_USE_EMBEDDED_THUMBNAILS="true"
# +–––––––––––––––––––+
# | videoFrameAtSec |
# +–––––––––––––––––––+
#
# When capturing a frame from videos for thumbnails, how many seconds should
# be passed over before capturing a frame? A value of 0 means capture from the
# start of the video. Frequently, though, videos start out of focus, so we
# default to 1 for better frame clarity.
# Note that if a video is shorter than this value, the frame will be captured
# from the middle of the video.
#
# PS_VIDEO_FRAME_AT_SEC="1.5"
##############################################################################
#
# Settings for Library.reporting:
#
# +–––––––––+
# | email |
# +–––––––––+
#
# If set, this email will be added to error reports, so we can contact you to
# help debug the issue. It is not required, and will not be used for
# marketing.
#
# PS_EMAIL=
# +––––––––––––––––+
# | reportErrors |
# +––––––––––––––––+
#
# If true, PhotoStructure will send crash reports when it encounters errors.
# Crash reports may include the path to the file that caused an error, system
# metadata, and recent log messages.
#
# PS_REPORT_ERRORS="true"
# +–––––––––––––––––––+
# | maxErrorsPerDay |
# +–––––––––––––––––––+
#
# Set this to zero to remove all bugs in PhotoStructure.
#
# HUR HUR #DADJOKE
#
# If your system generates more than this number of errors in the course of a