Web / Specify Host IP for Server listener #2274
3sychk
started this conversation in
Ideas and feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
i'd suggest the possibility to specify a listening IP address in the dotenv, thus only being able to access the WEB inside LAN network - without the need to expose it to 0.0.0.0. This may be beneficial, e.g. when running sm on a VPS.
Workaround for now:
Modify /src/web/index.ts:
export async function startAPIServer() { await stopAPIServer(); if (process.env.WEB_PORT) { server = createServer(requestListener); server.listen(Number(process.env.WEB_PORT), 'xx.xx.xx.xx'); } }
Feature request:
Create process.env.WEB_IP with a default value of 0.0.0.0
Regards.
Beta Was this translation helpful? Give feedback.
All reactions