configurable ports

This commit is contained in:
sose 2021-04-24 04:46:36 +00:00
parent 8256c21268
commit 5a8ac95e87
2 changed files with 8 additions and 4 deletions

View File

@ -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)
});

View File

@ -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