A Cydia Repository template with a simple web management interface for non-static hosting
- Uploading Packages
- Viewing Hosted Packages
- Deleting Package
- Password-based Authentication
- Optional HTTPS
Make sure you have access to the node
and npm
commands
- Clone this repo
- Open
server.js
and change the variables under theADJUST
headerPORT
- The port to run the server on. Recommended to leave this as80
MANAGEMENT_ENDPOINT
- The http endpoint that the management dashboard is hosted atPASSWORD
- The password to use when logging into the serverREPO_TITLE
- This will show up in the title of the management pageCOOKIE_SECRET
- Change this to a random secret string (used to encode cookies)SSL
- Enables SSL anv https. Make sure you follow the steps below to create a certificate first
- Open
index.html
and customize it to be the homepage of your repo - Open
static/Release
and changeOrigin
,Label
,Codename
, andDescription
- Install dependencies with
npm install
- Run the server with
sudo node server.js
or configure it to run as a daemon
If you want to run the the server with https:
- Use something like
nginx
as a reverse-proxy (I recommend usingcertbot
becuase it is really easy to instantly get an ssl certificate and redirect all http traffic to https) - Or you can follow theese instructions to setup https:
- Make a directory
ssl/
and addserver.cert
andserver.key
(aqquiring the certificate is up to you, I recommend letsencrypt) - Set
SSL
totrue
in theADJUST
section