--Server-publicUrl If you access the page form local network its good to know the public url for creating sharing link. (default: '')
--Server-urlBase If you access the gallery under a sub url (like: http://mydomain.com/myGallery), set it here. If it is not working you might miss the '/' from the beginning of the url. (default: '')
--Server-apiPath PiGallery api path. (default: '/pgapi')
--Server-customHTMLHead Injects the content of this between the <head></head> HTML tags of the app. (You can use it add analytics or custom code to the app). (default: '')
--Server-svgIcon-items Content elements (paths, circles, rects) of the SVG icon. Icons used on the map: fontawesome.com/icons. (default: '<pathd="m185.920.042372c-3.10450.19567-6.26761.0899-9.15463.163-16.085-8.0588-25.5651.6894-23.50414.76-5.30474.0078-10.7687.8463-6.315320.688-4.82834.5113-5.270211.17-1.222720.894-4.57317.1343-3.092713.9441.467620.445-5.050610.263.751420.5076.238923.943-0.999096.6761-0.4974213.45811.01621.392-1.220710.0055.749214.41512.41919.04512.5678.182417.2137.240627.08810.328l-0.13366-1.1862c-15.8333e-3-31.0176.2997-42.21117.506l-24.71524.736c-11.19411.206-26.37817.503-42.21117.506h-34.984c-32.9723.6e-4-59.70226.751-59.70159.749v179.24c3.6312e-432.99726.72959.74659.70159.747h358.21c32.972-3.6e-459.7-26.7559.701-59.747v-179.24c-0.0162-23.02-13.245-43.983-34.008-53.8893.0728-1.77815.0617-4.30716.7327-7.03794.1124-1.03217.438-3.217920.159-14.3277.7661-2.011213.273-6.276714.255-14.7199.3465-4.845613.285-10.2312.484-16.79211.694-7.07049.9759-13.5268.4511-19.9129.9742-8.6878.874-22.288-8.6236-26.461-3.1292-12.25-18.501-15.32-20.733-16.133-1.3931-4.0275-3.7026-7.9496-14.353-10.399-4.4451-8.3291-12.211-9.9464-20.904-9.9225-6.4476-10.379-14.548-6.8393-22.216-7.2124-9.6958-7.4917-13.951-3.6525-20.032-3.5572-11.02-6.8739-16.687-2.7782-24.4970.86675l-6.6602-2.5355c-21.8683.9146-38.5722.031-45.76531.840.78895-12.143-0.36806-36.764-14.606-53.831l-6.7327-2.3414c-3.6422-7.8167-5.3526-14.6-18.209-16.423-4.7287-3.9225-5.388-9.6636-17.627-10.162-3.9701-2.9861-7.0841-7.4205-11.972-9.091-2.5588-0.82206-5.6927-0.97346-9.68170.32356-6.6078-5.7069-13.63-9.3648-22.385-5.8437-9.7319-4.9749-14.082-3.5883-17.674-1.2668-1.3952-0.50821-7.2885-3.6439-14.018-4.1239-1.0094-0.071996-2.0376-0.084841-3.0724-0.019609zm1.01713.578c10.1040.9302718.5917.212924.70511.863.989-1.2971.8817-5.4748-0.67601-9.92647.47313.932113.9228.261119.54213.0584.4921-1.7738-6e-3-6.9333-1.6283-10.93411.326.653215.29911.73219.27716.8114.96-2.15342.5609-6.43731.1326-10.3687.92246.625711.08712.73114.48218.8082.4625-1.63315.6853-2.33014.5577-8.90085.16056.05978.519112.23310.34418.3984.8979-1.0764.6167-5.13765.7471-8.24594.81587.91427.002815.20110.19522.7431.3502-0.388183.143-2.5965.5002-6.357510.49521.31319.17268.475-19.54271.864-19.845-33.079-47.35-62.019-80.099-88.02839.01841.71259.70171.57868.82893.932-5.61238.2892-13.18612.888-21.42315.182h-31.496c-9.0855-1.8937-17.047-4.8048-21.968-6.93013.5034-0.263966.761-1.05788.553-3.265-2.8932-4.1339-16.942-6.6095-24.423-15.0543.83840.628155.7710.451798.3395-1.4727-7.7461-5.9015-16.277-11.759-20.149-18.3393.00881.0965.57642.799810.4481.4943-6.3427-7.0404-13.489-13.382-17.696-22.0654.11181.38778.44453.075110.2711.9806-5.5926-6.9871-9.844-14.035-12.948-21.2165.38212.73048.02063.03159.73262.5551-3.457-7.4192-8.6517-14.592-9.4172-22.4613.64362.97727.34784.877610.9043.8631-0.36036-4.7513-7.3377-10.044-8.4022-21.3224.32342.01488.76934.294610.0933.67680.9645-8.9987-0.93024-14.97-2.5963-20.9679.5473.367523.8778.697823.487.6733zm202.8968.954c-1.16573.2054-4.05356.0044-0.8955210.0155.3574-3.548611.898-6.117519.744-7.4399-5.08414.3081-3.16246.8795-2.2289.74996.5043-2.470812.815-5.012323.175-5.0887-3.61872.0919-8.20663.8292-5.79028.66946.3098-1.331612.62-2.663625.565-0.47848-3.81282.0212-10.673.0443-8.27097.32817.289-0.09515.1420.6765823.3572.5689-4.91571.7295-9.11613.6077-6.89347.16737.66830.3732118.2041.021626.5416.8085l-7.97683.8043c-0.962090.5295613.4735.567422.9149.2263-5.26053.5839-10.4156.8757-15.45614.390.617311.32495.48712.439110.0933.6768-8.0597.9545-16.7687.4235-20.13110.9282.03763.16226.03543.956710.8364.0553-5.73755.5002-14.2277.6885-21.6411.1481.00571.46633.21922.93389.09584.3043-6.99013.5039-14.7736.1675-23.5457.92230.731941.91665.09783.50879.13895.0907-8.79913.945-18.3464.207-27.7265.52012.928
--Server-sessionSecret (default: [])
--Server-sessionTimeout Users kept logged in for this long time. (default: 604800000)
--Server-port Port number. Port 80 is usually what you need. (default: 80)
--Server-host Server will accept connections from this IPv6 or IPv4 address. (default: '0.0.0.0')
--Server-Threading-enabled [Deprecated, will be removed in the next release] Runs directory scanning and thumbnail generation in a different thread. (default: false)
--Server-Threading-thumbnailThreads Number of threads that are used to generate thumbnails. If 0, number of 'CPU cores -1' threads will be used. (default: 0)
--Server-Log-sqlLevel Logging level for SQL queries. (default: 'error')
--Server-Log-logServerTiming If enabled, the app ads "Server-Timing" http header to the response. (default: false)
--Users-authenticationRequired Enables user management with login to password protect the gallery. (default: true)
--Users-unAuthenticatedUserRole Default user right when password protection is disabled. (default: 'Admin')
--Users-enforcedUsers Creates these users in the DB during startup if they do not exist. If a user with this name exist, it won't be overwritten, even if the role is different. (default: [])
--Gallery-enableCache Caches directory contents and search results for better performance. (default: true)
--Gallery-enableOnScrollRendering Those thumbnails get higher priority that are visible on the screen. (default: true)
--Gallery-enableDirectorySortingByDate If enabled, directories will be sorted by date, like photos, otherwise by name. Directory date is the last modification time of that directory not the creation date of the oldest photo. (default: false)
--Gallery-enableOnScrollThumbnailPrioritising Those thumbnails will be rendered first that are in view. (default: true)
--Gallery-NavBar-enableDownloadZip Enable download zip of a directory contents Directory flattening. (Does not work for searches.) (default: false)
--Gallery-NavBar-enableDirectoryFlattening Adds a button to flattens the file structure, by listing the content of all subdirectories. (Won't work if the gallery has multiple folders with the same path.) (default: false)
--Gallery-NavBar-defaultGidSize Default grid size that is used to render photos and videos. (default: 'medium')
--Gallery-NavBar-showItemCount Shows the number photos and videos on the navigation bar. (default: true)
--Gallery-NavBar-links Visible links in the top menu. (default: [{"type":1},{"type":3},{"type":2}])
--Gallery-NavBar-NavbarShowDelay Ratio of the page height, you need to scroll to show the navigation bar. (default: 0.3)
--Gallery-NavBar-NavbarHideDelay Ratio of the page height, you need to scroll to hide the navigation bar. (default: 0.15)
--Gallery-NavBar-showScrollUpButton Set when the floating scroll-up button should be visible. (default: 'mobileOnly')
--Gallery-captionFirstNaming Show the caption (IPTC 120) tags from the EXIF data instead of the filenames. (default: false)
--Gallery-Lightbox-defaultSlideshowSpeed Default time interval for displaying a photo in the slide show. (default: 5)
--Gallery-Lightbox-captionAlwaysOn If enabled, lightbox will always show caption by default, not only on hover. (default: false)
--Gallery-Lightbox-facesAlwaysOn If enabled, lightbox will always show faces by default, not only on hover. (default: false)
--Gallery-Lightbox-loopVideos If enabled, lightbox will loop videos by default. (default: false)
--Gallery-Themes-enabled Enable themes and color modes. (default: true)
--Gallery-Themes-defaultMode Sets the default theme mode that is used for the application. (default: 'auto')
--Gallery-Themes-selectedTheme Selected theme to use on the site. (default: 'classic')
--Gallery-Themes-availableThemes Adds these css settings as it is to the end of the body tag of the page. (default: [{"name":"classic","theme":":root nav.navbar {\n--bs-navbar-color: rgba(255, 255, 255, 0.55);\n--bs-navbar-hover-color: rgba(255, 255, 255, 0.75);\n--bs-navbar-disabled-color: rgba(255, 255, 255, 0.25);\n--bs-navbar-active-color: #fff;\n--bs-navbar-brand-color: #fff;\n--bs-navbar-brand-hover-color: #fff;\n--bs-bg-opacity: 1;\nbackground-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;\n}"}])
--Gallery-InlineBlogStartsOpen Makes inline blog (*.md files content) to be auto open. (default: false)
--Gallery-TopBlogStartsOpen Makes inline blog (*.md files content) to be auto open. (default: false)
--Media-Thumbnail-iconSize Icon size (used on maps). (default: 45)
--Media-Thumbnail-personThumbnailSize Person (face) thumbnail size. (default: 200)
--Media-Thumbnail-thumbnailSizes Size of the thumbnails. The best matching size will be generated. More sizes give better quality, but use more storage and CPU to render. If size is 240, that shorter side of the thumbnail will have 160 pixels. (default: [240,480])
--Media-Thumbnail-useLanczos3 if true, 'lanczos3' will used to scale photos, otherwise faster but lower quality 'nearest'. (default: true)
--Media-Thumbnail-quality Between 0-100. (default: 80)
--Media-Thumbnail-smartSubsample Use high quality chroma subsampling in webp. See: https://sharp.pixelplumbing.com/api-output#webp. (default: true)
--Media-Thumbnail-personFaceMargin This ratio of the face bounding box will be added to the face as a margin. Higher number add more margin. (default: 0.7)
--Media-Video-enabled (default: true)
--Media-Video-supportedFormatsWithTranscoding Video formats that are supported after transcoding (with the build-in ffmpeg support). (default: ["avi","mkv","mov","wmv","flv","mts","m2ts","mpg","3gp","m4v","mpeg","vob","divx","xvid","ts"])
--Media-Video-supportedFormats Video formats that are supported also without transcoding. Browser supported formats: https://www.w3schools.com/html/html5_video.asp (default: ["mp4","webm","ogv","ogg"])
--Media-Video-transcoding-bitRate Target bit rate of the output video will be scaled down this this. This should be less than the upload rate of your home server. (default: 5242880)
--Media-Video-transcoding-resolution The height of the output video will be scaled down to this, while keeping the aspect ratio. (default: 720)
--Media-Video-transcoding-fps Target frame per second (fps) of the output video will be scaled down this this. (default: 25)
--Media-Video-transcoding-crf The range of the Constant Rate Factor (CRF) scale is 0–51, where 0 is lossless, 23 is the default, and 51 is worst quality possible. (default: 23)
--Media-Video-transcoding-preset A preset is a collection of options that will provide a certain encoding speed to compression ratio. A slower preset will provide better compression (compression is quality per filesize). (default: 'medium')
--Media-Video-transcoding-customOutputOptions It will be sent to ffmpeg as it is, as custom output options. (default: [])
--Media-Video-transcoding-customInputOptions It will be sent to ffmpeg as it is, as custom input options. (default: [])
--Media-Photo-Converting-loadFullImageOnZoom Enables loading the full resolution image on zoom in the ligthbox (preview). (default: true)
--Media-Photo-Converting-onTheFly Converts photos on the fly, when they are requested. (default: true)
--Media-Photo-Converting-resolution The shorter edge of the converted photo will be scaled down to this, while keeping the aspect ratio. (default: 1080)
--Media-Photo-supportedFormats Photo formats that are supported. Browser needs to support these formats natively. Also sharp (libvips) package should be able to convert these formats. (default: ["gif","jpeg","jpg","jpe","png","webp","svg"])
--Media-folder Images are loaded from this folder (read permission required) (default: 'demo/images')
--Media-tempFolder Thumbnails, converted photos, videos will be stored here (write permission required) (default: 'demo/tmp')
--Media-photoMetadataSize Only this many bites will be loaded when scanning photo/video for metadata. Increase this number if your photos shows up as square. (default: 524288)
--MetaFile-gpx Reads *.gpx files and renders them on the map. (default: true)
--MetaFile-GPXCompressing-enabled Enables lossy (based on delta time and distance. Too frequent points are removed) GPX compression. (default: true)
--MetaFile-GPXCompressing-onTheFly Enables on the fly *.gpx compression. (default: true)
--MetaFile-GPXCompressing-minDistance Filters out entry that are closer than this to each other in meters. (default: 5)
--MetaFile-GPXCompressing-maxMiddleDeviance Filters out entry that would fall on the line if we would just connect the previous and the next points. This setting sets the sensitivity for that (higher number, more points are filtered). (default: 5)
--MetaFile-GPXCompressing-minTimeDistance Filters out entry that are closer than this in time in milliseconds. (default: 5000)
--MetaFile-markdown Reads *.md files in a directory and shows the next to the map. (default: true)
--MetaFile-pg2conf Reads *.pg2conf files (You can use it for custom sorting and saved search (albums)). (default: true)
--MetaFile-supportedFormats The app will read and process these files. (default: ["gpx","pg2conf","md"])
--Search-AutoComplete-enabled Show hints while typing search query. (default: true)
--Search-AutoComplete-ItemsPerCategory-maxItems Maximum number autocomplete items shown at once. If there is not enough items to reach this value, it takes upto double of the individual items. (default: 20)
--Search-AutoComplete-ItemsPerCategory-fileName Maximum number autocomplete items shown per photo category. (default: 2)
--Search-AutoComplete-ItemsPerCategory-directory Maximum number autocomplete items shown per directory category. (default: 2)
--Search-AutoComplete-ItemsPerCategory-caption Maximum number autocomplete items shown per caption category. (default: 3)
--Search-AutoComplete-ItemsPerCategory-position Maximum number autocomplete items shown per position category. (default: 3)
--Search-AutoComplete-ItemsPerCategory-person Maximum number autocomplete items shown per faces category. (default: 5)
--Search-AutoComplete-ItemsPerCategory-keyword Maximum number autocomplete items shown per keyword category. (default: 5)
--Sharing-updateTimeout After creating a sharing link, it can be updated for this long. (default: 300000)
--Map-enabled (default: true)
--Map-useImageMarkers Map will use thumbnail images as markers instead of the default pin. (default: true)
--Map-mapProvider (default: 'OpenStreetMap')
--Map-mapboxAccessToken MapBox needs an access token to work, create one at https://www.mapbox.com. (default: '')
--Map-customLayers The map module will use these urls to fetch the map tiles. (default: [{"name":"street","url":"","darkLayer":false}])
--Map-maxPreviewMarkers Maximum number of markers to be shown on the map preview on the gallery page. (default: 50)
--Map-MapPathGroupConfig Markers are grouped and themed by these settings (default: [{"name":"Transportation","matchers":[{"matchers":["flight","flying"],"theme":{"color":"var(--bs-orange)","dashArray":"4 8","svgIcon":{"viewBox":"0 0 567 512","items":"<pathd=\"M482.3192c34.2093.72993.764c036-59.564-93.764l-116.60L265.2495.9c-5.710-16.316.1-27.816.1l-56.20c-10.60-18.3-10.2-15.4-20.4l49-171.6L11232068.8377.6c-34-7.86.4-12.86.4l-420c-7.80-14-6.3-14-14c0-1.3.2-2.6.5-3.9L32256.5145.9c-.4-1.3-.5-2.6-.5-3.9c0-7.86.3-1414-14l420c509.82.412.86.4L112192l102.90-49-171.6C162.910.2170.60181.20l56.20c11.5022.16.227.816.1L365.7192l116.60z\"/>"}}},{"matchers":["drive","driving"],"theme":{"color":"var(--bs-orange)","dashArray":"4 8","svgIcon":{"viewBox":"0 0 640 512","items":"<pathd=\"M171.396H224v96H111.3l30.4-75.9C146.5104158.296171.396zM272192V96h81.2c9.7018.94.42512l67.284H272zm256.21L428.268c-18.2-22.8-45.8-36-75-36H171.3c-39.30-74.623.9-89.160.3L40.6196.4C16.8205.80228.90256V368c017.714.3323232H65.3c7.645.447.18094.780s87.1-34.694.7-80H385.3c7.645.447.18094.780s87.1-34.694.7-80H608c17.7032-14.332-32V320c0-65.2-48.8-119-111.8-127zM434.7368a484801190.5324848011-90.5-32zM160336a484801109648480110-96z\"/>"}}},{"matchers":["ship","sailing","cruise"],"theme":{"color":"var(--bs-orange)","dashArray":"4 8","svgIcon":{"viewBox":"0 0 576 512","items":"<pathd=\"M25616c0-74.5-13.211.2-15.3s13.9.417.96.1l224320c3.44.93.811.31.116.6s-8.28.6-14.28.6H272c-8.80-16-7.2-16-16V16zM212.196.5c71.911.98.211.915.5V336c08.8-7.216-1616H80c-5.70-11-3-13.8-8s-2.9-11-.1-16l128-224c3.6-6.311-9.418-7.5zM5.7404.3C2.8394.110.538421.1384H554.9c10.6018.310.115.420.3l-414.3C550.7473.9500.4512443512H133C75.651225.3473.99.7418.7l-4-14.3z\"/>"}}}]},{"name":"Sport","matchers":[{"matchers":["run"],"theme":{"color":"var(--bs-primary)","dashArray":"","svgIcon":{"viewBox":"0 0 417 512","items":"<pathd=\"M32048a4848010-9604848010960zM125.7175.5c9.9-9.923.4-15.537.5-15.5c1.903.8.15.6.3L137.6254c-9.3281.758.826.874.5l86.253.9-25.488.8c-4.917534.72239.6s34.7-539.6-22l28.7-100.4c5.9-20.6-2.6-42.6-20.7-53.9L238299l30.9-82.45.112.3C289264.7323.9288362.7288H384c17.7032-14.332-32s-14.3-32-32-32H362.7c-12.90-24.6-7.8-29.5-19.7l-6.3-15c-14.6-35.1-44.1-61.9-80.5-73.1l-48.7-15c-11.1-3.4-22.7-5.2-34.4-5.2c-310-60.812.3-82.734.3L57.4153.4c-12.512.5-12.532.8045.3s32.812.545.30l23.1-23.1zM91.2352H32c-17.70-3214.3-3232s14.3323232h69.6c19036.2-11.243.9-28.5L157361.6l-9.5-6c-17.5-10.9-30.5-26.8-37.9-44.9L91.2352z\"/>"}}},{"matchers":["walk"],"theme":{"color":"var(--bs-primary)","dashArray":"","svgIcon":{"viewBox":"0 0 320 512","items":"<pathd=\"M16048a48480119604848011-960zM126.5199.3c-1.4-1.9.8-2.91.2l-83.5c-16.47.3-2921.2-34.738.2l-2.67.8c-5.616.8-23.725.8-40.520.2s-25.8-23.7-20.2-40.5l2.6-7.8c11.4-34.136.6-61.969.4-76.5l8-3.5c20.8-9.243.3-1466.1-14c44.6084.826.8101.967.9L281232.7l21.410.7c15.87.922.227.114.342.9s-27.122.2-42.914.3L247287.3c-10.3-5.2-18.4-13.8-22.8-24.5l-9.6-23-19.365.549.554c5.45.99.21311.220.8l2392.1c4.317.1-6.134.5-23.338.8s-34.5-6.1-38.8-23.3l-22-88.1-70.7-77.1c-14.8-16.1-20.3-38.6-14.7-59.7l16.9-63.5zM68.7398l25-62.4c2.134.55.878.6l40.744.4-14.536.2c-2.46-611.5-10.616.1L54.6502.6c-12.512.5-32.812.5-45.30s-12.5-32.80-45.3L68.7398z\"/>"}}},{"matchers":["hike","hiking"],"theme":{"color":"var(--bs-primary)","dashArray":"","svgIcon":{"viewBox":"0 0 384 512","items":"<pathd=\"M19248a48480119604848011-960zm51.3182.7L224.2307l49.749.7c9914.121.214.133.9V480c017.7-14.332-3232s-32-14.3-32-32V397.3l-73.9-73.9c-15.8-15.8-22.2-38.6-16.9-60.3l20.4-84c8.3-34.142.7-54.976.7-46.4c194.835.616.446.432.7L305.1208H336V184c0-13.310.7-2424-24s2410.72424v55.8c0.10.20.2s0.20.2V488c01
--Map-bendLongPathsTrigger Map will bend the path if two points are this far apart on latititude axes. This intended to bend flight if only the end and the start points are given. (default: 0.5)
--Faces-enabled (default: true)
--Faces-keywordsToPersons If a photo has the same face (person) name and keyword, the app removes the duplicate, keeping the face only. (default: true)
--Faces-writeAccessMinRole Required minimum right to star (favourite) a face. (default: 'Admin')
--Faces-readAccessMinRole Required minimum right to show the faces tab. (default: 'User')
--RandomPhoto-enabled Enables random link generation. (default: true)
--Database-type SQLite is recommended. (default: 'sqlite')
--Database-dbFolder All file-based data will be stored here (sqlite database, job history data). (default: 'db')
--Database-sqlite-DBFileName Sqlite will save the db with this filename. (default: 'sqlite.db')
--Database-mysql-host (default: 'localhost')
--Database-mysql-port (default: 3306)
--Database-mysql-database (default: 'pigallery2')
--Database-mysql-username (default: '')
--Database-mysql-password (default: '')
--Indexing-cachedFolderTimeout If there was no indexing in this time, it reindexes. (skipped if indexes are in DB and sensitivity is low). (default: 3600000)
--Indexing-reIndexingSensitivity Set the reindexing sensitivity. High value check the folders for change more often. Setting to never only indexes if never indexed or explicit running the Indexing Job. (default: 'low')
--Indexing-excludeFolderList Folders to exclude from indexing. If an entry starts with '/' it is treated as an absolute path. If it doesn't start with '/' but contains a '/', the path is relative to the image directory. If it doesn't contain a '/', any folder with this name will be excluded. (default: [".Trash-1000",".dtrash","$RECYCLE.BIN"])
--Indexing-excludeFileList Files that mark a folder to be excluded from indexing. Any folder that contains a file with this name will be excluded from indexing. (default: [])
--AlbumCover-SearchQuery Filters the sub-folders with this search query. If filter results no photo, the app will search again without the filter. (default: {"type":100,"text":""})
--AlbumCover-Sorting If multiple cover is available sorts them by these methods and selects the first one. (default: [{"method":30,"ascending":false},{"method":20,"ascending":false},{"method":40,"ascending":false}])
--Duplicates-listingLimit Maximum number of duplicates to list. (default: 1000)
--Messaging-Email-emailFrom Some services do not allow sending from random e-mail addresses. Set this accordingly. (default: 'noreply@pigallery2.com')
--Messaging-Email-smtp-host SMTP host server (default: '')
--Messaging-Email-smtp-port SMTP server's port (default: 587)
--Messaging-Email-smtp-secure Is the connection secure. See https://nodemailer.com/smtp/#tls-options for more details (default: false)
--Messaging-Email-smtp-requireTLS if this is true and secure is false then Nodemailer (used library in the background) tries to use STARTTLS. See https://nodemailer.com/smtp/#tls-options for more details (default: true)
--Messaging-Email-smtp-user User to connect to the SMTP server. (default: '')
--Messaging-Email-smtp-password Password to connect to the SMTP server. (default: '')
--Jobs-maxSavedProgress Job history size. (default: 20)
--Jobs-mediaProcessingBatchSize Jobs load this many photos or videos form the DB for processing at once. (default: 1000)
Server-publicUrl If you access the page form local network its good to know the public url for creating sharing link. (default: '')
Server-urlBase If you access the gallery under a sub url (like: http://mydomain.com/myGallery), set it here. If it is not working you might miss the '/' from the beginning of the url. (default: '')
Server-apiPath PiGallery api path. (default: '/pgapi')
Server-customHTMLHead Injects the content of this between the <head></head> HTML tags of the app. (You can use it add analytics or custom code to the app). (default: '')
Server-svgIcon-items Content elements (paths, circles, rects) of the SVG icon. Icons used on the map: fontawesome.com/icons. (default: '<pathd="m185.920.042372c-3.10450.19567-6.26761.0899-9.15463.163-16.085-8.0588-25.5651.6894-23.50414.76-5.30474.0078-10.7687.8463-6.315320.688-4.82834.5113-5.270211.17-1.222720.894-4.57317.1343-3.092713.9441.467620.445-5.050610.263.751420.5076.238923.943-0.999096.6761-0.4974213.45811.01621.392-1.220710.0055.749214.41512.41919.04512.5678.182417.2137.240627.08810.328l-0.13366-1.1862c-15.8333e-3-31.0176.2997-42.21117.506l-24.71524.736c-11.19411.206-26.37817.503-42.21117.506h-34.984c-32.9723.6e-4-59.70226.751-59.70159.749v179.24c3.6312e-432.99726.72959.74659.70159.747h358.21c32.972-3.6e-459.7-26.7559.701-59.747v-179.24c-0.0162-23.02-13.245-43.983-34.008-53.8893.0728-1.77815.0617-4.30716.7327-7.03794.1124-1.03217.438-3.217920.159-14.3277.7661-2.011213.273-6.276714.255-14.7199.3465-4.845613.285-10.2312.484-16.79211.694-7.07049.9759-13.5268.4511-19.9129.9742-8.6878.874-22.288-8.6236-26.461-3.1292-12.25-18.501-15.32-20.733-16.133-1.3931-4.0275-3.7026-7.9496-14.353-10.399-4.4451-8.3291-12.211-9.9464-20.904-9.9225-6.4476-10.379-14.548-6.8393-22.216-7.2124-9.6958-7.4917-13.951-3.6525-20.032-3.5572-11.02-6.8739-16.687-2.7782-24.4970.86675l-6.6602-2.5355c-21.8683.9146-38.5722.031-45.76531.840.78895-12.143-0.36806-36.764-14.606-53.831l-6.7327-2.3414c-3.6422-7.8167-5.3526-14.6-18.209-16.423-4.7287-3.9225-5.388-9.6636-17.627-10.162-3.9701-2.9861-7.0841-7.4205-11.972-9.091-2.5588-0.82206-5.6927-0.97346-9.68170.32356-6.6078-5.7069-13.63-9.3648-22.385-5.8437-9.7319-4.9749-14.082-3.5883-17.674-1.2668-1.3952-0.50821-7.2885-3.6439-14.018-4.1239-1.0094-0.071996-2.0376-0.084841-3.0724-0.019609zm1.01713.578c10.1040.9302718.5917.212924.70511.863.989-1.2971.8817-5.4748-0.67601-9.92647.47313.932113.9228.261119.54213.0584.4921-1.7738-6e-3-6.9333-1.6283-10.93411.326.653215.29911.73219.27716.8114.96-2.15342.5609-6.43731.1326-10.3687.92246.625711.08712.73114.48218.8082.4625-1.63315.6853-2.33014.5577-8.90085.16056.05978.519112.23310.34418.3984.8979-1.0764.6167-5.13765.7471-8.24594.81587.91427.002815.20110.19522.7431.3502-0.388183.143-2.5965.5002-6.357510.49521.31319.17268.475-19.54271.864-19.845-33.079-47.35-62.019-80.099-88.02839.01841.71259.70171.57868.82893.932-5.61238.2892-13.18612.888-21.42315.182h-31.496c-9.0855-1.8937-17.047-4.8048-21.968-6.93013.5034-0.263966.761-1.05788.553-3.265-2.8932-4.1339-16.942-6.6095-24.423-15.0543.83840.628155.7710.451798.3395-1.4727-7.7461-5.9015-16.277-11.759-20.149-18.3393.00881.0965.57642.799810.4481.4943-6.3427-7.0404-13.489-13.382-17.696-22.0654.11181.38778.44453.075110.2711.9806-5.5926-6.9871-9.844-14.035-12.948-21.2165.38212.73048.02063.03159.73262.5551-3.457-7.4192-8.6517-14.592-9.4172-22.4613.64362.97727.34784.877610.9043.8631-0.36036-4.7513-7.3377-10.044-8.4022-21.3224.32342.01488.76934.294610.0933.67680.9645-8.9987-0.93024-14.97-2.5963-20.9679.5473.367523.8778.697823.487.6733zm202.8968.954c-1.16573.2054-4.05356.0044-0.8955210.0155.3574-3.548611.898-6.117519.744-7.4399-5.08414.3081-3.16246.8795-2.2289.74996.5043-2.470812.815-5.012323.175-5.0887-3.61872.0919-8.20663.8292-5.79028.66946.3098-1.331612.62-2.663625.565-0.47848-3.81282.0212-10.673.0443-8.27097.32817.289-0.09515.1420.6765823.3572.5689-4.91571.7295-9.11613.6077-6.89347.16737.66830.3732118.2041.021626.5416.8085l-7.97683.8043c-0.962090.5295613.4735.567422.9149.2263-5.26053.5839-10.4156.8757-15.45614.390.617311.32495.48712.439110.0933.6768-8.0597.9545-16.7687.4235-20.13110.9282.03763.16226.03543.956710.8364.0553-5.73755.5002-14.2277.6885-21.6411.1481.00571.46633.21922.93389.09584.3043-6.99013.5039-14.7736.1675-23.5457.92230.731941.91665.09783.50879.13895.0907-8.79913.945-18.3464.207-27.7265.52012.92874.
Server-sessionSecret (default: [])
Server-sessionTimeout Users kept logged in for this long time. (default: 604800000)
Server-port Port number. Port 80 is usually what you need. (default: 80)
PORT same as Server-port
Server-host Server will accept connections from this IPv6 or IPv4 address. (default: '0.0.0.0')
Server-Threading-enabled [Deprecated, will be removed in the next release] Runs directory scanning and thumbnail generation in a different thread. (default: false)
Server-Threading-thumbnailThreads Number of threads that are used to generate thumbnails. If 0, number of 'CPU cores -1' threads will be used. (default: 0)
Server-Log-level Logging level. (default: 'info')
Server-Log-sqlLevel Logging level for SQL queries. (default: 'error')
Server-Log-logServerTiming If enabled, the app ads "Server-Timing" http header to the response. (default: false)
Users-authenticationRequired Enables user management with login to password protect the gallery. (default: true)
Users-unAuthenticatedUserRole Default user right when password protection is disabled. (default: 'Admin')
Users-enforcedUsers Creates these users in the DB during startup if they do not exist. If a user with this name exist, it won't be overwritten, even if the role is different. (default: [])
Gallery-enableCache Caches directory contents and search results for better performance. (default: true)
Gallery-enableOnScrollRendering Those thumbnails get higher priority that are visible on the screen. (default: true)
Gallery-enableDirectorySortingByDate If enabled, directories will be sorted by date, like photos, otherwise by name. Directory date is the last modification time of that directory not the creation date of the oldest photo. (default: false)
Gallery-enableOnScrollThumbnailPrioritising Those thumbnails will be rendered first that are in view. (default: true)
Gallery-NavBar-enableDownloadZip Enable download zip of a directory contents Directory flattening. (Does not work for searches.) (default: false)
Gallery-NavBar-enableDirectoryFlattening Adds a button to flattens the file structure, by listing the content of all subdirectories. (Won't work if the gallery has multiple folders with the same path.) (default: false)
Gallery-NavBar-defaultGidSize Default grid size that is used to render photos and videos. (default: 'medium')
Gallery-NavBar-showItemCount Shows the number photos and videos on the navigation bar. (default: true)
Gallery-NavBar-links Visible links in the top menu. (default: [{"type":1},{"type":3},{"type":2}])
Gallery-NavBar-NavbarShowDelay Ratio of the page height, you need to scroll to show the navigation bar. (default: 0.3)
Gallery-NavBar-NavbarHideDelay Ratio of the page height, you need to scroll to hide the navigation bar. (default: 0.15)
Gallery-NavBar-showScrollUpButton Set when the floating scroll-up button should be visible. (default: 'mobileOnly')
Gallery-captionFirstNaming Show the caption (IPTC 120) tags from the EXIF data instead of the filenames. (default: false)
Gallery-Lightbox-defaultSlideshowSpeed Default time interval for displaying a photo in the slide show. (default: 5)
Gallery-Lightbox-captionAlwaysOn If enabled, lightbox will always show caption by default, not only on hover. (default: false)
Gallery-Lightbox-facesAlwaysOn If enabled, lightbox will always show faces by default, not only on hover. (default: false)
Gallery-Lightbox-loopVideos If enabled, lightbox will loop videos by default. (default: false)
Gallery-Themes-enabled Enable themes and color modes. (default: true)
Gallery-Themes-defaultMode Sets the default theme mode that is used for the application. (default: 'auto')
Gallery-Themes-selectedTheme Selected theme to use on the site. (default: 'classic')
Gallery-Themes-availableThemes Adds these css settings as it is to the end of the body tag of the page. (default: [{"name":"classic","theme":":root nav.navbar {\n--bs-navbar-color: rgba(255, 255, 255, 0.55);\n--bs-navbar-hover-color: rgba(255, 255, 255, 0.75);\n--bs-navbar-disabled-color: rgba(255, 255, 255, 0.25);\n--bs-navbar-active-color: #fff;\n--bs-navbar-brand-color: #fff;\n--bs-navbar-brand-hover-color: #fff;\n--bs-bg-opacity: 1;\nbackground-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;\n}"}])
Gallery-InlineBlogStartsOpen Makes inline blog (*.md files content) to be auto open. (default: false)
Gallery-TopBlogStartsOpen Makes inline blog (*.md files content) to be auto open. (default: false)
Media-Thumbnail-iconSize Icon size (used on maps). (default: 45)
Media-Thumbnail-personThumbnailSize Person (face) thumbnail size. (default: 200)
Media-Thumbnail-thumbnailSizes Size of the thumbnails. The best matching size will be generated. More sizes give better quality, but use more storage and CPU to render. If size is 240, that shorter side of the thumbnail will have 160 pixels. (default: [240,480])
Media-Thumbnail-useLanczos3 if true, 'lanczos3' will used to scale photos, otherwise faster but lower quality 'nearest'. (default: true)
Media-Thumbnail-quality Between 0-100. (default: 80)
Media-Thumbnail-smartSubsample Use high quality chroma subsampling in webp. See: https://sharp.pixelplumbing.com/api-output#webp. (default: true)
Media-Thumbnail-personFaceMargin This ratio of the face bounding box will be added to the face as a margin. Higher number add more margin. (default: 0.7)
Media-Video-enabled (default: true)
Media-Video-supportedFormatsWithTranscoding Video formats that are supported after transcoding (with the build-in ffmpeg support). (default: ["avi","mkv","mov","wmv","flv","mts","m2ts","mpg","3gp","m4v","mpeg","vob","divx","xvid","ts"])
Media-Video-supportedFormats Video formats that are supported also without transcoding. Browser supported formats: https://www.w3schools.com/html/html5_video.asp (default: ["mp4","webm","ogv","ogg"])
Media-Video-transcoding-bitRate Target bit rate of the output video will be scaled down this this. This should be less than the upload rate of your home server. (default: 5242880)
Media-Video-transcoding-resolution The height of the output video will be scaled down to this, while keeping the aspect ratio. (default: 720)
Media-Video-transcoding-fps Target frame per second (fps) of the output video will be scaled down this this. (default: 25)
Media-Video-transcoding-crf The range of the Constant Rate Factor (CRF) scale is 0–51, where 0 is lossless, 23 is the default, and 51 is worst quality possible. (default: 23)
Media-Video-transcoding-preset A preset is a collection of options that will provide a certain encoding speed to compression ratio. A slower preset will provide better compression (compression is quality per filesize). (default: 'medium')
Media-Video-transcoding-customOutputOptions It will be sent to ffmpeg as it is, as custom output options. (default: [])
Media-Video-transcoding-customInputOptions It will be sent to ffmpeg as it is, as custom input options. (default: [])
Media-Photo-Converting-loadFullImageOnZoom Enables loading the full resolution image on zoom in the ligthbox (preview). (default: true)
Media-Photo-Converting-onTheFly Converts photos on the fly, when they are requested. (default: true)
Media-Photo-Converting-resolution The shorter edge of the converted photo will be scaled down to this, while keeping the aspect ratio. (default: 1080)
Media-Photo-supportedFormats Photo formats that are supported. Browser needs to support these formats natively. Also sharp (libvips) package should be able to convert these formats. (default: ["gif","jpeg","jpg","jpe","png","webp","svg"])
Media-folder Images are loaded from this folder (read permission required) (default: 'demo/images')
Media-tempFolder Thumbnails, converted photos, videos will be stored here (write permission required) (default: 'demo/tmp')
Media-photoMetadataSize Only this many bites will be loaded when scanning photo/video for metadata. Increase this number if your photos shows up as square. (default: 524288)
MetaFile-gpx Reads *.gpx files and renders them on the map. (default: true)
MetaFile-GPXCompressing-enabled Enables lossy (based on delta time and distance. Too frequent points are removed) GPX compression. (default: true)
MetaFile-GPXCompressing-onTheFly Enables on the fly *.gpx compression. (default: true)
MetaFile-GPXCompressing-minDistance Filters out entry that are closer than this to each other in meters. (default: 5)
MetaFile-GPXCompressing-maxMiddleDeviance Filters out entry that would fall on the line if we would just connect the previous and the next points. This setting sets the sensitivity for that (higher number, more points are filtered). (default: 5)
MetaFile-GPXCompressing-minTimeDistance Filters out entry that are closer than this in time in milliseconds. (default: 5000)
MetaFile-markdown Reads *.md files in a directory and shows the next to the map. (default: true)
MetaFile-pg2conf Reads *.pg2conf files (You can use it for custom sorting and saved search (albums)). (default: true)
MetaFile-supportedFormats The app will read and process these files. (default: ["gpx","pg2conf","md"])
Search-AutoComplete-enabled Show hints while typing search query. (default: true)
Search-AutoComplete-ItemsPerCategory-maxItems Maximum number autocomplete items shown at once. If there is not enough items to reach this value, it takes upto double of the individual items. (default: 20)
Search-AutoComplete-ItemsPerCategory-fileName Maximum number autocomplete items shown per photo category. (default: 2)
Search-AutoComplete-ItemsPerCategory-directory Maximum number autocomplete items shown per directory category. (default: 2)
Search-AutoComplete-ItemsPerCategory-caption Maximum number autocomplete items shown per caption category. (default: 3)
Search-AutoComplete-ItemsPerCategory-position Maximum number autocomplete items shown per position category. (default: 3)
Search-AutoComplete-ItemsPerCategory-person Maximum number autocomplete items shown per faces category. (default: 5)
Search-AutoComplete-ItemsPerCategory-keyword Maximum number autocomplete items shown per keyword category. (default: 5)
Sharing-updateTimeout After creating a sharing link, it can be updated for this long. (default: 300000)
Map-enabled (default: true)
Map-useImageMarkers Map will use thumbnail images as markers instead of the default pin. (default: true)
Map-mapProvider (default: 'OpenStreetMap')
Map-mapboxAccessToken MapBox needs an access token to work, create one at https://www.mapbox.com. (default: '')
Map-customLayers The map module will use these urls to fetch the map tiles. (default: [{"name":"street","url":"","darkLayer":false}])
Map-maxPreviewMarkers Maximum number of markers to be shown on the map preview on the gallery page. (default: 50)
Map-MapPathGroupConfig Markers are grouped and themed by these settings (default: [{"name":"Transportation","matchers":[{"matchers":["flight","flying"],"theme":{"color":"var(--bs-orange)","dashArray":"4 8","svgIcon":{"viewBox":"0 0 567 512","items":"<pathd=\"M482.3192c34.2093.72993.764c036-59.564-93.764l-116.60L265.2495.9c-5.710-16.316.1-27.816.1l-56.20c-10.60-18.3-10.2-15.4-20.4l49-171.6L11232068.8377.6c-34-7.86.4-12.86.4l-420c-7.80-14-6.3-14-14c0-1.3.2-2.6.5-3.9L32256.5145.9c-.4-1.3-.5-2.6-.5-3.9c0-7.86.3-1414-14l420c509.82.412.86.4L112192l102.90-49-171.6C162.910.2170.60181.20l56.20c11.5022.16.227.816.1L365.7192l116.60z\"/>"}}},{"matchers":["drive","driving"],"theme":{"color":"var(--bs-orange)","dashArray":"4 8","svgIcon":{"viewBox":"0 0 640 512","items":"<pathd=\"M171.396H224v96H111.3l30.4-75.9C146.5104158.296171.396zM272192V96h81.2c9.7018.94.42512l67.284H272zm256.21L428.268c-18.2-22.8-45.8-36-75-36H171.3c-39.30-74.623.9-89.160.3L40.6196.4C16.8205.80228.90256V368c017.714.3323232H65.3c7.645.447.18094.780s87.1-34.694.7-80H385.3c7.645.447.18094.780s87.1-34.694.7-80H608c17.7032-14.332-32V320c0-65.2-48.8-119-111.8-127zM434.7368a484801190.5324848011-90.5-32zM160336a484801109648480110-96z\"/>"}}},{"matchers":["ship","sailing","cruise"],"theme":{"color":"var(--bs-orange)","dashArray":"4 8","svgIcon":{"viewBox":"0 0 576 512","items":"<pathd=\"M25616c0-74.5-13.211.2-15.3s13.9.417.96.1l224320c3.44.93.811.31.116.6s-8.28.6-14.28.6H272c-8.80-16-7.2-16-16V16zM212.196.5c71.911.98.211.915.5V336c08.8-7.216-1616H80c-5.70-11-3-13.8-8s-2.9-11-.1-16l128-224c3.6-6.311-9.418-7.5zM5.7404.3C2.8394.110.538421.1384H554.9c10.6018.310.115.420.3l-414.3C550.7473.9500.4512443512H133C75.651225.3473.99.7418.7l-4-14.3z\"/>"}}}]},{"name":"Sport","matchers":[{"matchers":["run"],"theme":{"color":"var(--bs-primary)","dashArray":"","svgIcon":{"viewBox":"0 0 417 512","items":"<pathd=\"M32048a4848010-9604848010960zM125.7175.5c9.9-9.923.4-15.537.5-15.5c1.903.8.15.6.3L137.6254c-9.3281.758.826.874.5l86.253.9-25.488.8c-4.917534.72239.6s34.7-539.6-22l28.7-100.4c5.9-20.6-2.6-42.6-20.7-53.9L238299l30.9-82.45.112.3C289264.7323.9288362.7288H384c17.7032-14.332-32s-14.3-32-32-32H362.7c-12.90-24.6-7.8-29.5-19.7l-6.3-15c-14.6-35.1-44.1-61.9-80.5-73.1l-48.7-15c-11.1-3.4-22.7-5.2-34.4-5.2c-310-60.812.3-82.734.3L57.4153.4c-12.512.5-12.532.8045.3s32.812.545.30l23.1-23.1zM91.2352H32c-17.70-3214.3-3232s14.3323232h69.6c19036.2-11.243.9-28.5L157361.6l-9.5-6c-17.5-10.9-30.5-26.8-37.9-44.9L91.2352z\"/>"}}},{"matchers":["walk"],"theme":{"color":"var(--bs-primary)","dashArray":"","svgIcon":{"viewBox":"0 0 320 512","items":"<pathd=\"M16048a48480119604848011-960zM126.5199.3c-1.4-1.9.8-2.91.2l-83.5c-16.47.3-2921.2-34.738.2l-2.67.8c-5.616.8-23.725.8-40.520.2s-25.8-23.7-20.2-40.5l2.6-7.8c11.4-34.136.6-61.969.4-76.5l8-3.5c20.8-9.243.3-1466.1-14c44.6084.826.8101.967.9L281232.7l21.410.7c15.87.922.227.114.342.9s-27.122.2-42.914.3L247287.3c-10.3-5.2-18.4-13.8-22.8-24.5l-9.6-23-19.365.549.554c5.45.99.21311.220.8l2392.1c4.317.1-6.134.5-23.338.8s-34.5-6.1-38.8-23.3l-22-88.1-70.7-77.1c-14.8-16.1-20.3-38.6-14.7-59.7l16.9-63.5zM68.7398l25-62.4c2.134.55.878.6l40.744.4-14.536.2c-2.46-611.5-10.616.1L54.6502.6c-12.512.5-32.812.5-45.30s-12.5-32.80-45.3L68.7398z\"/>"}}},{"matchers":["hike","hiking"],"theme":{"color":"var(--bs-primary)","dashArray":"","svgIcon":{"viewBox":"0 0 384 512","items":"<pathd=\"M19248a48480119604848011-960zm51.3182.7L224.2307l49.749.7c9914.121.214.133.9V480c017.7-14.332-3232s-32-14.3-32-32V397.3l-73.9-73.9c-15.8-15.8-22.2-38.6-16.9-60.3l20.4-84c8.3-34.142.7-54.976.7-46.4c194.835.616.446.432.7L305.1208H336V184c0-13.310.7-2424-24s2410.72424v55.8c0.10.20.2s0.20.2V488c013.3-
Map-bendLongPathsTrigger Map will bend the path if two points are this far apart on latititude axes. This intended to bend flight if only the end and the start points are given. (default: 0.5)
Faces-enabled (default: true)
Faces-keywordsToPersons If a photo has the same face (person) name and keyword, the app removes the duplicate, keeping the face only. (default: true)
Faces-writeAccessMinRole Required minimum right to star (favourite) a face. (default: 'Admin')
Faces-readAccessMinRole Required minimum right to show the faces tab. (default: 'User')
RandomPhoto-enabled Enables random link generation. (default: true)
Database-type SQLite is recommended. (default: 'sqlite')
Database-dbFolder All file-based data will be stored here (sqlite database, job history data). (default: 'db')
Database-sqlite-DBFileName Sqlite will save the db with this filename. (default: 'sqlite.db')
Database-mysql-host (default: 'localhost')
MYSQL_HOST same as Database-mysql-host
Database-mysql-port (default: 3306)
MYSQL_PORT same as Database-mysql-port
Database-mysql-database (default: 'pigallery2')
MYSQL_DATABASE same as Database-mysql-database
Database-mysql-username (default: '')
MYSQL_USERNAME same as Database-mysql-username
Database-mysql-password (default: '')
MYSQL_PASSWORD same as Database-mysql-password
Indexing-cachedFolderTimeout If there was no indexing in this time, it reindexes. (skipped if indexes are in DB and sensitivity is low). (default: 3600000)
Indexing-reIndexingSensitivity Set the reindexing sensitivity. High value check the folders for change more often. Setting to never only indexes if never indexed or explicit running the Indexing Job. (default: 'low')
Indexing-excludeFolderList Folders to exclude from indexing. If an entry starts with '/' it is treated as an absolute path. If it doesn't start with '/' but contains a '/', the path is relative to the image directory. If it doesn't contain a '/', any folder with this name will be excluded. (default: [".Trash-1000",".dtrash","$RECYCLE.BIN"])
Indexing-excludeFileList Files that mark a folder to be excluded from indexing. Any folder that contains a file with this name will be excluded from indexing. (default: [])
AlbumCover-SearchQuery Filters the sub-folders with this search query. If filter results no photo, the app will search again without the filter. (default: {"type":100,"text":""})
AlbumCover-Sorting If multiple cover is available sorts them by these methods and selects the first one. (default: [{"method":30,"ascending":false},{"method":20,"ascending":false},{"method":40,"ascending":false}])
Duplicates-listingLimit Maximum number of duplicates to list. (default: 1000)
Messaging-Email-emailFrom Some services do not allow sending from random e-mail addresses. Set this accordingly. (default: 'noreply@pigallery2.com')
Messaging-Email-smtp-host SMTP host server (default: '')
Messaging-Email-smtp-port SMTP server's port (default: 587)
Messaging-Email-smtp-secure Is the connection secure. See https://nodemailer.com/smtp/#tls-options for more details (default: false)
Messaging-Email-smtp-requireTLS if this is true and secure is false then Nodemailer (used library in the background) tries to use STARTTLS. See https://nodemailer.com/smtp/#tls-options for more details (default: true)
Messaging-Email-smtp-user User to connect to the SMTP server. (default: '')
Messaging-Email-smtp-password Password to connect to the SMTP server. (default: '')
Jobs-maxSavedProgress Job history size. (default: 20)
Jobs-mediaProcessingBatchSize Jobs load this many photos or videos form the DB for processing at once. (default: 1000)
"If you access the gallery under a sub url (like: http://mydomain.com/myGallery), set it here. If it is not working you might miss the '/' from the beginning of the url."
"Creates these users in the DB during startup if they do not exist. If a user with this name exist, it won't be overwritten, even if the role is different."
"If enabled, directories will be sorted by date, like photos, otherwise by name. Directory date is the last modification time of that directory not the creation date of the oldest photo."
"Enable download zip of a directory contents Directory flattening. (Does not work for searches.)"
],
"enableDownloadZip": false,
"//[enableDirectoryFlattening]": [
"Adds a button to flattens the file structure, by listing the content of all subdirectories. (Won't work if the gallery has multiple folders with the same path.)"
],
"enableDirectoryFlattening": false,
"//[defaultGidSize]": [
"Default grid size that is used to render photos and videos."
"Pigallery2 uses Bootstrap 5.3 (https://getbootstrap.com/docs/5.3) for design (css, layout). In dark mode it sets 'data-bs-theme=\"dark\"' to the <html> to take advantage bootstrap's color modes. For theming, read more at: https://getbootstrap.com/docs/5.3/customize/color-modes/"
],
"Themes": {
"//[enabled]": [
"Enable themes and color modes."
],
"enabled": true,
"//[defaultMode]": [
"Sets the default theme mode that is used for the application."
],
"defaultMode": "auto",
"//[selectedTheme]": [
"Selected theme to use on the site."
],
"selectedTheme": "classic",
"//[availableThemes]": [
"Adds these css settings as it is to the end of the body tag of the page."
],
"availableThemes": [
{
"//[name]": [
"Name of the theme"
],
"name": "classic",
"//[theme]": [
"Adds these css settings as it is to the end of the body tag of the page."
"Size of the thumbnails. The best matching size will be generated. More sizes give better quality, but use more storage and CPU to render. If size is 240, that shorter side of the thumbnail will have 160 pixels."
"Video support uses ffmpeg. ffmpeg and ffprobe binaries need to be available in the PATH or the @ffmpeg-installer/ffmpeg and @ffprobe-installer/ffprobe optional node packages need to be installed."
"To ensure smooth video playback, video transcoding is recommended to a lower bit rate than the server's upload rate. The transcoded videos will be save to the thumbnail folder. You can trigger the transcoding manually, but you can also create an automatic encoding job in advanced settings mode."
"A preset is a collection of options that will provide a certain encoding speed to compression ratio. A slower preset will provide better compression (compression is quality per filesize)."
"Photo formats that are supported. Browser needs to support these formats natively. Also sharp (libvips) package should be able to convert these formats."
"Filters out entry that would fall on the line if we would just connect the previous and the next points. This setting sets the sensitivity for that (higher number, more points are filtered)."
"Markers are grouped and themed by these settings"
],
"MapPathGroupConfig": [
{
"//[name]": [
"Name of the marker and path group on the map."
],
"name": "Transportation",
"//[matchers]": [
"Matchers for a given map and path theme."
],
"matchers": [
{
"//[matchers]": [
"List of regex string to match the name of the path. Case insensitive. Empty list matches everything."
],
"matchers": [
"flight",
"flying"
],
"//[theme]": [
"List of regex string to match the name of the path."
],
"theme": {
"//[color]": [
"Color of the path. Use any valid css colors."
],
"color": "var(--bs-orange)",
"//[dashArray]": [
"Dash pattern of the path. Represents the spacing and length of the dash. Read more about dash array at: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray."
"List of regex string to match the name of the path. Case insensitive. Empty list matches everything."
],
"matchers": [
"drive",
"driving"
],
"//[theme]": [
"List of regex string to match the name of the path."
],
"theme": {
"//[color]": [
"Color of the path. Use any valid css colors."
],
"color": "var(--bs-orange)",
"//[dashArray]": [
"Dash pattern of the path. Represents the spacing and length of the dash. Read more about dash array at: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray."
"List of regex string to match the name of the path. Case insensitive. Empty list matches everything."
],
"matchers": [
"ship",
"sailing",
"cruise"
],
"//[theme]": [
"List of regex string to match the name of the path."
],
"theme": {
"//[color]": [
"Color of the path. Use any valid css colors."
],
"color": "var(--bs-orange)",
"//[dashArray]": [
"Dash pattern of the path. Represents the spacing and length of the dash. Read more about dash array at: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray."
"List of regex string to match the name of the path. Case insensitive. Empty list matches everything."
],
"matchers": [
"run"
],
"//[theme]": [
"List of regex string to match the name of the path."
],
"theme": {
"//[color]": [
"Color of the path. Use any valid css colors."
],
"color": "var(--bs-primary)",
"//[dashArray]": [
"Dash pattern of the path. Represents the spacing and length of the dash. Read more about dash array at: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray."
"List of regex string to match the name of the path. Case insensitive. Empty list matches everything."
],
"matchers": [
"walk"
],
"//[theme]": [
"List of regex string to match the name of the path."
],
"theme": {
"//[color]": [
"Color of the path. Use any valid css colors."
],
"color": "var(--bs-primary)",
"//[dashArray]": [
"Dash pattern of the path. Represents the spacing and length of the dash. Read more about dash array at: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray."
"List of regex string to match the name of the path. Case insensitive. Empty list matches everything."
],
"matchers": [
"hike",
"hiking"
],
"//[theme]": [
"List of regex string to match the name of the path."
],
"theme": {
"//[color]": [
"Color of the path. Use any valid css colors."
],
"color": "var(--bs-primary)",
"//[dashArray]": [
"Dash pattern of the path. Represents the spacing and length of the dash. Read more about dash array at: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray."
"List of regex string to match the name of the path. Case insensitive. Empty list matches everything."
],
"matchers": [
"bike",
"biking",
"cycling"
],
"//[theme]": [
"List of regex string to match the name of the path."
],
"theme": {
"//[color]": [
"Color of the path. Use any valid css colors."
],
"color": "var(--bs-primary)",
"//[dashArray]": [
"Dash pattern of the path. Represents the spacing and length of the dash. Read more about dash array at: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray."
"List of regex string to match the name of the path. Case insensitive. Empty list matches everything."
],
"matchers": [
"skiing",
"ski"
],
"//[theme]": [
"List of regex string to match the name of the path."
],
"theme": {
"//[color]": [
"Color of the path. Use any valid css colors."
],
"color": "var(--bs-primary)",
"//[dashArray]": [
"Dash pattern of the path. Represents the spacing and length of the dash. Read more about dash array at: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray."
"List of regex string to match the name of the path. Case insensitive. Empty list matches everything."
],
"matchers": [],
"//[theme]": [
"List of regex string to match the name of the path."
],
"theme": {
"//[color]": [
"Color of the path. Use any valid css colors."
],
"color": "var(--bs-secondary)",
"//[dashArray]": [
"Dash pattern of the path. Represents the spacing and length of the dash. Read more about dash array at: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray."
"Content elements (paths, circles, rects) of the SVG icon. Icons used on the map: fontawesome.com/icons."
],
"items": ""
}
}
}
]
}
],
"//[bendLongPathsTrigger]": [
"Map will bend the path if two points are this far apart on latititude axes. This intended to bend flight if only the end and the start points are given."
"This feature enables you to generate 'random photo' urls. That URL returns a photo random selected from your gallery. You can use the url with 3rd party application like random changing desktop background. Note: With the current implementation, random link also requires login."
"Set the reindexing sensitivity. High value check the folders for change more often. Setting to never only indexes if never indexed or explicit running the Indexing Job."
"Folders to exclude from indexing. If an entry starts with '/' it is treated as an absolute path. If it doesn't start with '/' but contains a '/', the path is relative to the image directory. If it doesn't contain a '/', any folder with this name will be excluded."
"Specify a search query and sorting that the app can use to pick the best photo for an album and folder cover. There is no way to manually pick folder and album cover in the app. You can tag some of your photos with 'cover' and set that as search query or rate them to 5 and set sorting to descending by rating."
"The App can send messages (like photos on the same day a year ago. aka: \"Top Pick\"). Here you can configure the delivery method."
],
"Messaging": {
"//[Email]": [
"The app uses Nodemailer in the background for sending e-mails. Refer to https://nodemailer.com/usage/ if some options are not clear."
],
"Email": {
"//[emailFrom]": [
"Some services do not allow sending from random e-mail addresses. Set this accordingly."
],
"emailFrom": "noreply@pigallery2.com",
"smtp": {
"//[host]": [
"SMTP host server"
],
"host": "",
"//[port]": [
"SMTP server's port"
],
"port": 587,
"//[secure]": [
"Is the connection secure. See https://nodemailer.com/smtp/#tls-options for more details"
],
"secure": false,
"//[requireTLS]": [
"if this is true and secure is false then Nodemailer (used library in the background) tries to use STARTTLS. See https://nodemailer.com/smtp/#tls-options for more details"