Skip to main content

Gallery

Gallery Overrides

All settings in the table below can have a gallery specific override by appending the gallery name to the end of the key. For example if the environment variable REQUIRE_REVIEW_PROPOSAL is specified it will override the value specified using the REQUIRE_REVIEW environment variable.

NameValue
TITLEChanges the title displayed in the header and tabs.

Default: "WeddingShare"
LOGOChanges the icon displayed in the header and tabs. To change please provide the full Url to an image resouce or the path to a file if using volume mappings.

Default: "/images/logo.png"
GALLERY_BANNER_IMAGEIf set a banner image will be displayed at the top of the gallery.

Default: none
GALLERY_QUOTEIf set a quote message will display at the top of the gallery.

Default: none
GALLERY_SECRET_KEYThis is the secret key used to authenticate to the gallery page.

Default: none
GALLERY_COLUMNSThe number of columns to display horizontally on larger displays. The options are based on Bootstrap so you can choose between 1, 2, 3, 4, 6 or 12.

Default: 4
GALLERY_ITEMS_PER_PAGEThis sets the number of items to show per page. Increasing this will show more content but impact page load and performance.

Default: 50
GALLERY_FULL_WIDTHIf enabled the gallery options will be hidden on larger displays so the content spans the full width of the page.

Default: false
GALLERY_RETAIN_REJECTED_ITEMSIf enabled rejected items will be removed from the admin panel but still stored on disk in a rejected folder.

Default: false
GALLERY_UPLOADIf disabled the upload feature will not display for non-admin users. It will always display for admin users when logged in.

Default: false
GALLERY_DOWNLOADIf disabled the download button will not display for non-admin users. It will always display for admin users when logged in.

Default: false
GALLERY_REQUIRE_REVIEWIf enabled all uploads will require approval from an admin before they display on site for users. This is a protection to prevent spam or NSFW items showing on site.

Default: true
GALLERY_REVIEW_COUNTERIf disabled the total/approved/pending counter won't appear at the top of the gallery page.

Default: true
GALLERY_PREVENT_DUPLICATESIf enabled the item hash will be stored in the database and compared against future uploads. If an upload hash matches an existing item it will be rejected.

Default: true
GALLERY_QR_CODE_ENABLEDIf disabled the QR code will be hidden from the gallery page.

Default: true
GALLERY_QR_CODE_DEFAULT_VIEWIf set this will override the default view users will be brought to once scanned. The options are default, presentation or slideshow.

Default: none
GALLERY_QR_CODE_DEFAULT_SORTIf set this will override the default order items will be sorted with once scanned.

Default: none
GALLERY_IDLE_REFRESH_MINSTo keep the gallery page fresh on displays the page periodically refreshes if no activity is detected after X amount of minutes. This is great for wall mounted displays. Set a value of 0 to disable refreshing.

Default: 5
GALLERY_MAX_SIZE_MBThis is the size in Mb each gallery should be limited to. If the limit is reached users will no longer be allowed to upload content.

Default: 1024
GALLERY_MAX_FILE_SIZE_MBThis is the maximum allows file size in Mb for a single upload item. This is used to prevent massive high resolution uploads which would use up disk space and slow performance.

Default: 10
GALLERY_DEFAULT_VIEWThis is the default display mode to show users. The options are 0 (Default), 1 (Presentation) or 2 (Slideshow)

Default: 0
GALLERY_UPLOAD_PERIODThis allows you to set specific upload windows. When outside these windows the upload feature will be hidden for non-admin users. Once the period starts the upload feature will be displayed to all users. The upload feature will always be visible to logged in admin users.

Example: "2025-01-29 23:59" or "2025-01-01 00:00 / 2025-01-03 23:59" or "2025-01-01 00:00 / 2025-01-01 23:59, 2025-01-03 00:00 / 2025-01-03 23:59"

Default: none
GALLERY_ALLOWED_FILE_TYPESThis sets the types of items that are allowed to be uploaded by users. Please note not all content types are advised or supported. An example is Apples heic format which is not accepted by non-Apple devices due to its licensing. You may add it here but it will display broken images and a bad user experience for non-Apple users.

Default: ".jpg,.jpeg,.png,.mp4,.mov"
Media Formats

Not all image formats are supported in browsers so although you may be able to add them via the ALLOWED_FILE_TYPES environment variable they may not be supported. One such format is Apples .heic format. It is specific to Apple devices and due to its licensing, a lot of browsers have not implemented it.

Custom Image Resources

For any environment variable that accepts an image resource you have 2 options:

Option 1 - (Web Resource)

You can use a Url making sure to only use Urls that link directly to external resources.

The Url must adhere to the following rules:

Option 2 - (Local Resource)

You can use locally stored resources using volume mappings.

First add an additional mapping:

- /var/lib/docker/volumes/WeddingShare-CustomResources/_data:/app/wwwroot/custom_resources

Then link directly to the image:

GALLERY_BANNER_IMAGE="/custom_resources/my_image.png"