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.jsand change the variables under theADJUSTheaderPORT- The port to run the server on. Recommended to leave this as80MANAGEMENT_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.htmland customize it to be the homepage of your repo - Open
static/Releaseand changeOrigin,Label,Codename, andDescription - Install dependencies with
npm install - Run the server with
sudo node server.jsor configure it to run as a daemon
If you want to run the the server with https:
- Use something like
nginxas a reverse-proxy (I recommend usingcertbotbecuase 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.certandserver.key(aqquiring the certificate is up to you, I recommend letsencrypt) - Set
SSLtotruein theADJUSTsection