2.5 KiB
Self-hosting tutorial
Note
We do not provide support on how to self-host. If you can't figure it out then tough luck. Please do not make GitHub issues or ask in our Discord server for support on how to self-host.
So you would like to self-host. This app is made of two parts:
- The proxy
- The client
Hosting the proxy
The proxy is made as a Cloudflare worker. Cloudflare has a generous free plan, so you don't need to pay anything unless you get hundreds of users.
- Create a Cloudflare account at https://dash.cloudflare.com.
- Navigate to
Workers
. - If it asks you, choose a subdomain.
- If it asks for a workers plan, press "Continue with free".
- Create a new service with a name of your choice. Must be type
HTTP handler
. - On the service page, Click
Quick edit
. - Remove the template code in the quick edit window.
- Download the
worker.js
file from the latest release of the proxy: https://github.com/movie-web/simple-proxy/releases/latest. - Open the downloaded
worker.js
file in Notepad, Visual Studio Code or similar. - Copy the text contents of the
worker.js
file. - Paste the text contents into the edit screen of the Cloudflare service worker.
- Click
Save and deploy
and confirm.
Your proxy is now hosted on Cloudflare. Note the url of your worker as you will need it later.
Hosting the client
-
Download the file
movie-web.zip
from the latest release: https://github.com/movie-web/movie-web/releases/latest. -
Extract the zip file so you can edit the files.
-
Open
config.js
in Notepad, Visual Studio Code or similar. -
Put your Cloudflare proxy URL in-between the double quotes of
VITE_CORS_PROXY_URL: ""
. Make sure to not have a slash at the end of your URL.Example (THIS IS MINE, IT WONT WORK FOR YOU):
VITE_CORS_PROXY_URL: "https://test-proxy.test.workers.dev"
-
Put your TMDB read access token inside the quotes of
VITE_TMDB_READ_API_KEY: ""
. You can generate it for free at https://www.themoviedb.org/settings/api. -
Save the file
Your client has now been prepared, you can now host it with any static website hosting (Common ones include GitHub Pages, Netlify and Vercel but any will work!). It doesn't require PHP, it's just a standard static page.