Watching videos can be free. if you have spent lots of time to search videos online and watch tjem, this might be a good fit to you. You can spend 0 then you can own a complete free video aggregation and playback website. Only thing you will need is a free Cloudflare account.
Related Post:
✍https://blog.51sec.org/2026/05/completely-free-to-deploy-your-own.html
Related Videos:
🌟Create Own Online Video Aggregation Site with Docker & Cloudflare (LibreTV Porject) - https://youtu.be/lTC8QX3awjs
🌟Free VPS (4vCPU, 8G RAM) to Deploy Docker, DB, APP in ClawCloud Run - https://youtu.be/GNf_zC7vOt0
🌟Get Free Subdomain DNS from EU.ORG & Integrate with Cloudflare - https://youtu.be/V1xnhqqg4Rw
💖Chapters:
0:00 - Introduction
2:24 - Les start it
3:58 - 1. Fork KVideo Github Project
4:52 - 2. Create Cloudflare Page
6:50 - 3. Fix Compatibility Error
9:13 - 4. Add Sources Subscription & Configure Password
13:38 - 5. Premium & Custom Domain
16:28 - Outro
Variables:
1. variable
name:NEXT_PUBLIC_SUBSCRIPTION_SOURCES
value:URL to a json file
e.g. https://github.com/rapier15sapper/ew/raw/refs/heads/main/test.json
2. variable
name:ACCESS_PASSWORD
value:Password12345
✅#51Sec #NetSec #Cyber #Security #CyberSecurity #HomeLab
If you found this video has some useful information, please give me a thumb up and subscribe this channel to get more updates:
⚡https://www.youtube.com/c/Netsec?sub_confirmation=1
⚡Resource Collection and Bookmarks: https://sites.51sec.org/
Learning and Sharing - 🔊海内存知己,天涯若比邻! A bosom friend afar brings a distant land near!
Discord: https://discord.gg/fCW9phn, Blog: https://blog.51sec.org
Show More Show Less View Video Transcript
0:08
Hello everyone. Welcome back to Johnny's
0:11
YouTube channel.
0:13
This video going to show you how to
0:14
deploy your own private video
0:17
aggregation and playback website based
0:19
on this GitHub project K video.
0:22
It's mostly Chinese, but you can
0:25
translate to English very easily to
0:27
understand in the features and how to
0:29
deploy. Previously, I already showed you
0:34
how to deploy Donghua TV E-Vision and
0:39
Liberal TV, Mount TV, Lan TV. There
0:43
There are many this kind of projects
0:45
online already. I even made a video if
0:48
you search Liberal TV, you should be
0:51
able to find it.
0:52
Um they all look similar. You can search
0:56
and then learn after you search, you can
0:58
find out the source and then you can
0:59
play with it. I just I will show you the
1:02
two instance I deployed using Vercel or
1:07
Cloudflare before. This project is
1:10
different This project even better. They
1:13
give you much nice GUI which you can
1:16
take a look from their demo site.
1:20
It shows those pictures very well and
1:24
they are
1:24
very fast and also the configuration is
1:28
much easier.
1:29
One thing I found it's not clear is how
1:32
to deploy to Cloudflare because I would
1:35
like to use that. It mentions Cloudflare
1:38
here, but it you have to use in a
1:40
command line or direct upload that
1:43
method.
1:44
I would like to use in a Git integration
1:47
method which is fork it into your own
1:50
Git repository and then integrate with
1:53
Cloudflare pull the source code and then
1:56
deploy it. I figured it out and that's
1:59
why I'm creating this video. I think you
2:01
can do same. If you want to have your
2:03
own private video playing back side and
2:06
here it is. Try to build yourself and
2:09
make it secure. Put the password in and
2:12
you can watch it. There's some special
2:14
content there. You might want to look at
2:17
it and
2:18
protect it as well.
2:20
I will quickly show you in the video.
2:23
Now, let's jump in.
2:29
If you look this GitHub project readme
2:33
at the end, almost the end of that
2:36
readme, you should be able to see this
2:38
option three verso Cloudflare managed
2:41
deployment. It clearly says don't use
2:44
Git integration refer to the official
2:47
document.
2:49
They want you to use in command line
2:51
deployment or direct upload process.
2:55
Actually, we should be able to use it.
2:59
Here is a benefit for that and maybe
3:02
easier to use the Cloudflare web UI to
3:06
do it. And it's also get the benefit
3:09
whenever you need to
3:11
pull the latest code, it will
3:12
automatically deploy to Cloudflare
3:14
pages. So, that's why I decided to
3:18
put the list video in and also of course
3:21
I have a blog post to talk about it. You
3:24
can look at the last steps showing here
3:27
with the screenshots actual point
3:30
to show you how to configure it.
3:34
You do need to have Cloudflare account
3:36
which is free. You don't have to have
3:38
your domain to map to your app. I will
3:42
strongly suggest to get one because that
3:44
will make you to access your application
3:47
much easier.
3:49
So now, let's log in to your Cloudflare
3:52
account, go to workers and pages, and
3:56
then start to create an application.
4:03
Well, before we create our pages in
4:06
Cloudflare and we would like to fork a
4:10
project, make sure you gave star and
4:12
fork it since it's great project here.
4:16
They already have more than 3K and the
4:19
6K forked already.
4:22
It will automatically create your own
4:24
repository under your GitHub account.
4:27
The name you gave to K videos, which is
4:30
the same. You don't have to change
4:32
anything, just create fork.
4:34
Then it will copy it the main branches
4:38
into your GitHub account. Yeah, that's
4:41
only thing you need to do at GitHub. So,
4:45
now we can go back to
4:47
workers pages to create your pages here.
4:56
You can create worker and you also can
4:59
deploy to pages. For us, we're going to
5:01
use in pages for this project. It will
5:04
ask you direct upload or you can import
5:09
an existing Git repository. That's what
5:11
we trying to achieve, which wasn't
5:14
showing from the GitHub readme.
5:17
But we will give it try. It works based
5:20
on my testing. You will find your GitHub
5:23
account, which is already here. If you
5:25
don't have it, just add your GitHub
5:28
account here. Then you will see your
5:30
repository K video we just created. Then
5:33
we can begin to set up.
5:37
Of course, the framework preset, you
5:39
going to do next.js.
5:42
Here is the build command you may want
5:44
to make the changes,
5:46
which you also can find it from my blog
5:49
post.
5:50
This is a build command.
5:54
It's the same. You should be able to
5:55
find it from here and you
5:57
build the command.
6:00
Let's put that in. No other changes,
6:03
only those two.
6:05
That should be enough for you to save
6:07
and deploy.
6:10
So, usually it would take less than 2
6:12
minutes to get it done.
6:14
We will pause the video recording and
6:16
come back once it's completed.
6:24
Perfect. In probably less than 2
6:27
minutes, it finished it. Project is
6:30
deployed to region Earth and you will
6:33
get this pages.dev
6:36
subdomain.
6:37
Um you can directly open it. And you
6:39
will see this compatibility errors.
6:43
We need to fix that, which you should be
6:45
able to find it from original GitHub
6:49
repository.
6:54
So, now we are facing this error. Let's
6:56
fix it. If you go back to GitHub readme
7:00
and you search compatibility
7:04
and you should be able to see this.
7:09
The compatibility settings, the
7:11
compatibility flag. We want the same. We
7:14
can go back to the deployment.
7:20
settings
7:21
If you go to the runtime, then you
7:24
should be able to see this compatibility
7:27
flag is not set yet. Of course, we can
7:31
now define that.
7:34
Search for it. You should be get that
7:37
nodejs_
7:39
compat. Save it.
7:41
Of course, once you made any changes on
7:43
your projects, then you need to redeploy
7:46
it. Go back to the deployment.
7:49
Click those three dots here, retry
7:51
deployment. And again, it will need
7:54
another 2 minutes to get it done. So, we
7:57
will pause the video and wait it down to
7:59
continue.
8:01
Perfect. You can see the assets
8:04
published. Your site was deployed.
8:08
Now, you should be able to refresh this.
8:11
That Teleport site you will have from
8:14
now on is already exposed to internet.
8:17
It's on a Cloudflare global CDN network.
8:21
Anybody can watch it here as long as I
8:23
have this video. So, there's couple
8:25
things we need to fix. If you click
8:28
any videos, you shouldn't be able to
8:30
find any content here.
8:33
Um you can change it to English. You
8:36
shouldn't able to find it.
8:39
That is because there's no video source
8:43
added in here. There's no video you need
8:46
to have to add video source. So, our
8:48
next step, we can configure video
8:51
source.
8:52
And also, we can make sure your K video
8:55
platform is protected by the password.
8:59
You don't want anybody go to your
9:01
website to watch it since that might
9:03
causing lots of other issues. My
9:07
suggestion is to put the access control
9:10
password on your video.
9:17
There are two things we need to
9:19
configure it. First things we need to
9:21
add a public subscription source, which
9:24
has many video sources. About 78 to 22
9:29
premium, 56 for normal.
9:32
So, the total of more than 70 different
9:35
video sources you will search the videos
9:38
for and I also want to put in a password
9:41
to protect it using this
9:44
variable. So, basically we need to add
9:46
two variables in so you can copy that.
9:49
I will put the lows into the video
9:51
description. You can copy paste from
9:54
there.
9:56
Go back to your Cloudflare settings, the
10:00
project settings.
10:04
Then you should go back to three
10:07
variables and the secrets. Um here
10:10
variables is empty. There's nothing
10:12
there. You can add one.
10:14
Um first thing you can add public
10:17
subscription sources.
10:19
So, there's a link you can find out from
10:22
here. There's a total 78
10:25
data source.
10:26
Basically video sources in there.
10:29
Um
10:30
just add it in. It will be automatically
10:34
imported into your project.
10:37
It's a JSON format. Save it.
10:41
That's first thing. The second thing is
10:43
of course is access control.
10:47
You may want to add this access password
10:52
variable in.
10:57
Change it to secret so you can put
11:00
anything here. Password 1 2 3 4 is the
11:04
one I
11:05
usually use.
11:08
Save.
11:10
Now you have two variables here.
11:14
Let's give it a try. Of course, you need
11:16
to deploy again. So, go back to your
11:19
deployment. Find out your latest deploy.
11:22
Just do try.
11:25
Again, 2 minutes will be needed. We will
11:28
pause our video recording. Come back
11:31
once it done.
11:34
Again, less than 2 minutes, your website
11:37
was deployed.
11:41
Now, let's refresh or we can just reopen
11:44
it.
11:49
So, now you need the password, of
11:51
course. Our password 1 2 3 4.
11:54
It'll be working here. I don't need to
11:56
save it.
11:58
Previously, when we click if didn't find
12:01
any source because there's no source was
12:03
defined here. Now,
12:06
you can see we find the videos. Uh we
12:09
should be able to click and then land
12:11
start to play.
12:14
It's also
12:15
can see all those sources here.
12:20
You can see those sources. There's total
12:22
56 sources.
12:26
You can see them. Let's re-
12:29
go back to the portal.
12:31
You can go down and then search any
12:33
other interesting videos you may want to
12:36
try. I'm not
12:39
Wow, we found the two sources now.
12:42
We can choose any of them to play with
12:44
it. One has 480p, one is 1080p. Let's
12:48
start with
12:49
480p. So, sometimes it might not able to
12:53
show you content, then
12:56
you can choose different
12:59
resources to play with it.
13:07
Yeah, some of them might not be able to
13:09
play, but some of them for sure you
13:11
should be able to play. You can
13:14
click on it and then you can see.
13:19
Isn't that amazing?
13:24
So, then you should
13:25
got this dedicated private for yourself
13:30
a movie or video aggregation website for
13:34
you to play with it. You can watch the
13:37
videos you like.
13:43
As you can see, we have our video
13:45
platform up and running now. Uh you may
13:48
want to see some
13:50
extra which you can use in premium.
13:54
So, in the premium, they will show you
13:56
some different they have 22 different
13:59
premium video sources, but you may not
14:02
want to show them
14:04
in your videos for all kinds of reason,
14:07
then you have to get rid of it. There's
14:10
a couple ways.
14:12
The one way is change the settings here.
14:15
You can remove those variables
14:22
from this source. Of course, you don't
14:24
have the control of these sources, but
14:27
they should be able to copy the whole
14:30
sources and remove the button
14:34
from here.
14:38
Remove all of them and then generate
14:40
your own
14:41
source from here
14:43
for normal, then you won't be able to
14:45
see those. That's the one way or
14:48
you can set up another
14:52
premium password for your variable to
14:55
control the access the premium content
14:59
which I was presenting.
15:03
The last thing I want to show you is um
15:06
custom domain. Okay, we have this
15:09
website up and running, but how about a
15:11
custom domain? Okay, that's pretty
15:13
simple. You can just put the custom
15:16
domain here.
15:18
Continue. Activate domain.
15:22
So, basically just create the CNAME
15:24
record for you. Then you can use
15:27
kvideo.itprosec.com
15:30
to access to it. Of course, it might
15:32
need a while to get this CNAME record
15:36
valid and then create it.
15:39
Also broadcast it globally to use. But
15:42
it usually shouldn't take a very long.
15:45
1 or 2 minutes. Then this CNAME record
15:48
will be ready to use.
15:51
It's verifying.
15:53
So, we're going to pause the video and
15:55
then come back once it's ready.
15:58
Well, as mentioned 1 or 2 minutes,
16:00
um this
16:02
record will be ready for you to use. You
16:04
can just
16:06
You can put the password in.
16:13
Now you can access it again. So, that's
16:16
all for this video. I hope you like the
16:19
this video. And please don't forget give
16:22
me some up and
16:24
uh subscribe my channel if you can. See
16:26
you in my next one.
16:37
>> [music]
Science
