configurable ports
This commit is contained in:
parent
8256c21268
commit
5a8ac95e87
|
@ -5,6 +5,7 @@ const url = require("url")
|
||||||
const path = require("path")
|
const path = require("path")
|
||||||
|
|
||||||
const sigils_dir = "sigils"
|
const sigils_dir = "sigils"
|
||||||
|
const gemini_port = 1965
|
||||||
|
|
||||||
const electron_options = {
|
const electron_options = {
|
||||||
show: false,
|
show: false,
|
||||||
|
@ -125,6 +126,6 @@ app.on('window-all-closed', () => {
|
||||||
app.whenReady().then(() => {
|
app.whenReady().then(() => {
|
||||||
server.on("*", handle_request)
|
server.on("*", handle_request)
|
||||||
server.listen(() => {
|
server.listen(() => {
|
||||||
console.log("listening on localhost:1965")
|
console.log("listening on localhost:" + gemini_port)
|
||||||
})
|
}, gemini_port)
|
||||||
});
|
});
|
||||||
|
|
|
@ -21,8 +21,7 @@ a complete web-to-gemini proxy
|
||||||
- `npm install`
|
- `npm install`
|
||||||
- `./gen_cert`
|
- `./gen_cert`
|
||||||
- `npm start` or `xvfb-run npm start`
|
- `npm start` or `xvfb-run npm start`
|
||||||
- the server will listen on localhost:1965
|
- the server will listen on localhost
|
||||||
- this is not configurable
|
|
||||||
|
|
||||||
## what is this?
|
## what is this?
|
||||||
- hellgate is a web browser with a gemini server attached
|
- 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
|
- 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
|
- if you write a new sigil for a specific website, don't hesitate to send it as
|
||||||
a pull request to this repo
|
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
|
||||||
|
|
Loading…
Reference in New Issue