The idea of this Panel is to be deployed with the stremio-beamup project.
The BeamUp Web Panel includes the following features:
- log in with github
- see deployed projects and their status
- download logs for a deployed project
- restart a deployed project
- delete a deployed project
npm install
npm run build
For a detailed production setup guide, see PRODUCTION_SETUP.md.
- Set up environment variables in
.env
- Set up system services (
systemd
) and Nginx reverse proxy - Configure firewall and sudo permissions
- Deploy the application (as
dokku
user):sudo -u dokku bash -c 'cd /opt/beamup-panel && ./scripts/production-deploy.sh'
The app ports need to be set manually, create a .env
file in the root folder of the project, and add:
REACT_APP_SERVER_PORT=5050
REACT_APP_PORT=3999
SERVER_PORT=$REACT_APP_SERVER_PORT
PORT=$REACT_APP_PORT
WDS_SOCKET_PORT=$REACT_APP_PORT
In this example's case, the app should be accessed from http://localhost:5050
.
Three more env vars will need to be added to the .env
file for the app to work, these are explained below.
Create an OAuth app under your github username (these are required for CLIENT_ID
and CLIENT_SECRET
env vars), see this article for details: https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/
(Note: while creating the OAuth app, you can set your Homepage URL to http://localhost:5050/
and Authorization Callback URL to http://localhost:5050/login
)
After setting all required ENV vars, start the app with npm start
SESSIONS_FOLDER=../ # a folder that is persisted for sessions data
SESSIONS_EXPIRE=2592000000 # 30 days
To include a custom news.html
page for deployment:
-
Create
news.html
: Develop your custom HTML file. -
Place in
public
directory: Add thenews.html
file to thepublic
directory of the project. -
Verify: Ensure the server is running and access the page at
https://your-deployment-url/news.html
.