mirror of
https://github.com/woodchen-ink/docker-firefox.git
synced 2025-07-19 14:21:59 +08:00
Added environment variable to specify custom arguments to pass to Firefox.
This commit is contained in:
parent
1e6d352a54
commit
ebe461ade1
@ -90,7 +90,8 @@ RUN \
|
|||||||
# Set public environment variables.
|
# Set public environment variables.
|
||||||
ENV \
|
ENV \
|
||||||
FF_OPEN_URL= \
|
FF_OPEN_URL= \
|
||||||
FF_KIOSK=0
|
FF_KIOSK=0 \
|
||||||
|
FF_CUSTOM_ARGS=
|
||||||
|
|
||||||
# Metadata.
|
# Metadata.
|
||||||
LABEL \
|
LABEL \
|
||||||
|
10
appdefs.yml
10
appdefs.yml
@ -395,6 +395,16 @@ container:
|
|||||||
customer-facing displays.
|
customer-facing displays.
|
||||||
type: public
|
type: public
|
||||||
default: 0
|
default: 0
|
||||||
|
- name: FF_CUSTOM_ARGS
|
||||||
|
description: >-
|
||||||
|
Custom argument(s) to pass when launching {{ app.friendly_name }}.
|
||||||
|
type: public
|
||||||
|
default: 0
|
||||||
|
unraid_template:
|
||||||
|
title: "Custom Arguments"
|
||||||
|
display: advanced
|
||||||
|
required: false
|
||||||
|
mask: false
|
||||||
|
|
||||||
# Volumes
|
# Volumes
|
||||||
volumes: []
|
volumes: []
|
||||||
|
@ -20,3 +20,8 @@ fi
|
|||||||
if [ -n "${FF_OPEN_URL:-}" ]; then
|
if [ -n "${FF_OPEN_URL:-}" ]; then
|
||||||
echo "$FF_OPEN_URL"
|
echo "$FF_OPEN_URL"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Custom arguments.
|
||||||
|
if [ -n "${FF_CUSTOM_ARGS:-}" ]; then
|
||||||
|
eval 'for word in '$FF_CUSTOM_ARGS'; do echo "$word"; done'
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user