Closed gl-yziquel closed 10 months ago
Ah...
Hard-coded in server/server.js
:
const port = [ args.port, process.env.UPTIME_KUMA_PORT, process.env.PORT, 3001 ]
OK. I'll try this environment variable or argument.
Ah...
Hard-coded in
server/server.js
:const port = [ args.port, process.env.UPTIME_KUMA_PORT, process.env.PORT, 3001 ]
OK. I'll try this environment variable or argument.
If you can change the port by the environment variable or argument, then logically it is not hard-coded.
Close as you find the answer by yourself.
ok. sorry.
Though having more thorough configuration docs would be welcome. That is the goal of this ticket.
You could check this: https://github.com/louislam/uptime-kuma/wiki/Environment-Variables
Thank you so much !
β οΈ Please verify that this bug has NOT been raised before.
π‘οΈ Security Policy
π Describe your problem
My problem is simple. 1. I checked out the repo with git/gix. 2. I did
pnpm install
. 3. I didnpm run dev
4. As I have many services running on my computer, port 3001 is busy and server can't start up.I did not see instruction to change the port in the doc, and I'm not on docker, but running it on metal. Ideally, I'd like
npm run dev
to work with alternate ports.Where do I set such a configuration for uptime-kuma ?
π Error Message(s) or Log
No response
π» Uptime-Kuma Version
1708b67949ca183b2ee86ef70e9e51c5f721a73e
π» Operating System and Arch
Ubuntu
π Browser
None. elinks most of the time. Falkon. Anyhow, not applicable here.
π Docker Version
Not applicable here.
π© NodeJS Version
v20.5.1