From 5a8ac95e87a92f5d09c5b1a321910164dc2428ec Mon Sep 17 00:00:00 2001 From: sose Date: Sat, 24 Apr 2021 04:46:36 +0000 Subject: [PATCH] configurable ports --- hellgate.js | 5 +++-- readme.md | 7 +++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hellgate.js b/hellgate.js index b6bc461..2977925 100644 --- a/hellgate.js +++ b/hellgate.js @@ -5,6 +5,7 @@ const url = require("url") const path = require("path") const sigils_dir = "sigils" +const gemini_port = 1965 const electron_options = { show: false, @@ -125,6 +126,6 @@ app.on('window-all-closed', () => { app.whenReady().then(() => { server.on("*", handle_request) server.listen(() => { - console.log("listening on localhost:1965") - }) + console.log("listening on localhost:" + gemini_port) + }, gemini_port) }); diff --git a/readme.md b/readme.md index 5055bb0..60c2c6e 100644 --- a/readme.md +++ b/readme.md @@ -21,8 +21,7 @@ a complete web-to-gemini proxy - `npm install` - `./gen_cert` - `npm start` or `xvfb-run npm start` - - the server will listen on localhost:1965 - - this is not configurable + - the server will listen on localhost ## what is this? - hellgate is a web browser with a gemini server attached @@ -47,3 +46,7 @@ javascript environment - see [writing sigils](writing_sigils.md) for more info on how to write a sigil - if you write a new sigil for a specific website, don't hesitate to send it as a pull request to this repo + +## notes +- as of right now the npm version of gemini-server is broken, use the version + from github or this will not work