Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
echo "$html" | grep -q '<title>Loading...</title>'
echo "$html" | grep -qE '<video id="video"[^>]*\bautoplay\b'
echo "$html" | grep -qE '<video id="video"[^>]*\bmuted\b'
echo "$html" | grep -q 'source src="video.mp4"'
echo "$html" | grep -q 'source src="/video.mp4"'
echo "$html" | grep -q 'id="cookie-banner"'
echo "$html" | grep -q 'id="site-error"'
echo "$html" | grep -q 'id="loading-screen"'
Expand All @@ -91,6 +91,7 @@ jobs:
[ "$status" = "404" ]
html=$(curl -sS http://localhost:8080/some/random/path)
echo "$html" | grep -q 'id="video"'
echo "$html" | grep -q 'source src="/video.mp4"'

- name: Check container runs as non-root
run: |
Expand Down Expand Up @@ -161,7 +162,7 @@ jobs:
echo "$html" | grep -q 'height: 50vh'
echo "$html" | grep -q 'width: 50%'
echo "$html" | grep -q 'object-fit: contain'
echo "$html" | grep -q 'source src="custom.mp4"'
echo "$html" | grep -q 'source src="/custom.mp4"'
if echo "$html" | grep -qE '<video id="video"[^>]*\bloop\b'; then
echo "unexpected loop attribute present with LOOP=false"
exit 1
Expand Down
1 change: 1 addition & 0 deletions scripts/70-nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -eu

PORT="${PORT:-"8080"}"
VIDEO_FILE="${VIDEO_FILE:-"video.mp4"}"
VIDEO_FILE="${VIDEO_FILE#/}"

# Create nginx conf with port variable
tee /etc/nginx/nginx.conf << 'EOF' >/dev/null
Expand Down
1 change: 1 addition & 0 deletions scripts/index/80-index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ WIDTH="${WIDTH:-"100%"}"
OBJECT_FIT="${OBJECT_FIT:-"cover"}"
LOOP="${LOOP:-"true"}"
VIDEO_FILE="${VIDEO_FILE:-"video.mp4"}"
VIDEO_FILE="/${VIDEO_FILE#/}"
OVERLAY="${OVERLAY:-"random"}"

LOOP_ATTR=""
Expand Down
Loading