Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dailymotion
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoStreaming
Plugins
Dailymotion
Commits
b3dab417
Commit
b3dab417
authored
6 months ago
by
Stefan Cruz
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into develop
parents
080b387d
45d118bb
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
DailymotionConfig.json
+1
-1
1 addition, 1 deletion
DailymotionConfig.json
build/DailymotionConfig.json
+1
-1
1 addition, 1 deletion
build/DailymotionConfig.json
deploy.sh
+25
-25
25 additions, 25 deletions
deploy.sh
with
27 additions
and
27 deletions
DailymotionConfig.json
+
1
−
1
View file @
b3dab417
...
...
@@ -6,7 +6,7 @@
"authorUrl"
:
"https://futo.org"
,
"sourceUrl"
:
"https://plugins.grayjay.app/Dailymotion/DailymotionConfig.json"
,
"scriptUrl"
:
"./DailymotionScript.js"
,
"repositoryUrl"
:
"https://
gitlab.
futo.org
/videostreaming/plugins/dailymotion
"
,
"repositoryUrl"
:
"https://futo.org"
,
"version"
:
21
,
"iconUrl"
:
"./DailymotionIcon.png"
,
"id"
:
"9c87e8db-e75d-48f4-afe5-2d203d4b95c5"
,
...
...
This diff is collapsed.
Click to expand it.
build/DailymotionConfig.json
+
1
−
1
View file @
b3dab417
...
...
@@ -6,7 +6,7 @@
"authorUrl"
:
"https://futo.org"
,
"sourceUrl"
:
"https://plugins.grayjay.app/Dailymotion/DailymotionConfig.json"
,
"scriptUrl"
:
"./DailymotionScript.js"
,
"repositoryUrl"
:
"https://
gitlab.
futo.org
/videostreaming/plugins/dailymotion
"
,
"repositoryUrl"
:
"https://futo.org"
,
"version"
:
21
,
"iconUrl"
:
"./DailymotionIcon.png"
,
"id"
:
"9c87e8db-e75d-48f4-afe5-2d203d4b95c5"
,
...
...
This diff is collapsed.
Click to expand it.
deploy.sh
+
25
−
25
View file @
b3dab417
#!/bin/sh
DOCUMENT_ROOT
=
/var/www/sources
# Take site offline
echo
"Taking site offline..."
touch
$DOCUMENT_ROOT
/maintenance.file
# Swap over the content
echo
"Deploying content..."
mkdir
-p
$DOCUMENT_ROOT
/Dailymotion
cp
build/DailymotionIcon.png
$DOCUMENT_ROOT
/Dailymotion
cp
build/DailymotionConfig.json
$DOCUMENT_ROOT
/Dailymotion
cp
build/DailymotionScript.js
$DOCUMENT_ROOT
/Dailymotion
sh sign.sh
$DOCUMENT_ROOT
/Dailymotion/DailymotionScript.js
$DOCUMENT_ROOT
/Dailymotion/DailymotionConfig.json
# Notify Cloudflare to wipe the CDN cache
echo
"Purging Cloudflare cache for zone
$CLOUDFLARE_ZONE_ID
..."
curl
-X
POST
"https://api.cloudflare.com/client/v4/zones/
$CLOUDFLARE_ZONE_ID
/purge_cache"
\
-H
"Authorization: Bearer
$CLOUDFLARE_API_TOKEN
"
\
-H
"Content-Type: application/json"
\
--data
'{"files":["https://plugins.grayjay.app/Dailymotion/DailymotionIcon.png", "https://plugins.grayjay.app/Dailymotion/DailymotionConfig.json", "https://plugins.grayjay.app/Dailymotion/DailymotionScript.js"]}'
# Take site back online
echo
"Bringing site back online..."
rm
$DOCUMENT_ROOT
/maintenance.file
#!/bin/sh
DOCUMENT_ROOT
=
/var/www/sources
# Take site offline
echo
"Taking site offline..."
touch
$DOCUMENT_ROOT
/maintenance.file
# Swap over the content
echo
"Deploying content..."
mkdir
-p
$DOCUMENT_ROOT
/Dailymotion
cp
build/DailymotionIcon.png
$DOCUMENT_ROOT
/Dailymotion
cp
build/DailymotionConfig.json
$DOCUMENT_ROOT
/Dailymotion
cp
build/DailymotionScript.js
$DOCUMENT_ROOT
/Dailymotion
sh sign.sh
$DOCUMENT_ROOT
/Dailymotion/DailymotionScript.js
$DOCUMENT_ROOT
/Dailymotion/DailymotionConfig.json
# Notify Cloudflare to wipe the CDN cache
echo
"Purging Cloudflare cache for zone
$CLOUDFLARE_ZONE_ID
..."
curl
-X
POST
"https://api.cloudflare.com/client/v4/zones/
$CLOUDFLARE_ZONE_ID
/purge_cache"
\
-H
"Authorization: Bearer
$CLOUDFLARE_API_TOKEN
"
\
-H
"Content-Type: application/json"
\
--data
'{"files":["https://plugins.grayjay.app/Dailymotion/DailymotionIcon.png", "https://plugins.grayjay.app/Dailymotion/DailymotionConfig.json", "https://plugins.grayjay.app/Dailymotion/DailymotionScript.js"]}'
# Take site back online
echo
"Bringing site back online..."
rm
$DOCUMENT_ROOT
/maintenance.file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment