You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, the way Dashy is installed, you're unable to set the desired port.
Use Console
Traverse to /opt/dashy
Edit (nano, vi, etc) server.js
Change the 4000 to 80 on this line.
/* Checks env var for port. If undefined, will use Port 8080 for Docker, or 4000 for metal */
const port = process.env.PORT || (isDocker ? 8080 : 80);
Works like a charm and now I can set a domain name on my router for easy use. The biggest benefit to Dashy is the ability to point towards other services that make port changing a little or lot more difficult. Being that many routers won't allow a domain name to point at IP:PORT, Dashy is a huge help. Dashy is also one of the only Dashboards I have tried (3 or 4) that will allow the IP:PORT mapping.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Unfortunately, the way Dashy is installed, you're unable to set the desired port.
/* Checks env var for port. If undefined, will use Port 8080 for Docker, or 4000 for metal */
const port = process.env.PORT || (isDocker ? 8080 : 80);
Works like a charm and now I can set a domain name on my router for easy use. The biggest benefit to Dashy is the ability to point towards other services that make port changing a little or lot more difficult. Being that many routers won't allow a domain name to point at IP:PORT, Dashy is a huge help. Dashy is also one of the only Dashboards I have tried (3 or 4) that will allow the IP:PORT mapping.
Best of luck, I hope this helps a few folks.
Beta Was this translation helpful? Give feedback.
All reactions