# How can I make a website page in the main node-red adress

**URL:** <https://discourse.nodered.org/t/how-can-i-make-a-website-page-in-the-main-node-red-adress/27742>\
**Category:** Dashboard\
**Created:** [4 June 2020 00:39 UTC](https://discourse.nodered.org/t/how-can-i-make-a-website-page-in-the-main-node-red-adress/27742 "2020-06-04T00:39:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![RyuunosukeDS3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ryuunosukeds3/32/22503_2.png) [@RyuunosukeDS3](https://discourse.nodered.org/u/RyuunosukeDS3)\
**Post date:** [4 June 2020 00:39 UTC](https://discourse.nodered.org/t/how-can-i-make-a-website-page-in-the-main-node-red-adress/27742/1 "2020-06-04T00:39:32Z")

</div>

I switched the flow editor to localhost:1880/admin, how can I make a website in localhost:1880?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [4 June 2020 00:46 UTC](https://discourse.nodered.org/t/how-can-i-make-a-website-page-in-the-main-node-red-adress/27742/2 "2020-06-04T00:46:20Z")

</div>

~~what kind of website?

For static pages, you can use the setting in settings.js to publish a folder.

For a data-driven page, you can use http-in/out, Dashboard or uibuilder.

Apart from uibuilder, all of this is documented in the docs.~~

Scrub that, I need to go to bed. Just realised this was in the Dashboard section.

Not sure that you can though you could try changing the ui prefix to nothing in settings.js

---

<div class="post-metadata">

**Author:** ![RyuunosukeDS3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ryuunosukeds3/32/22503_2.png) [@RyuunosukeDS3](https://discourse.nodered.org/u/RyuunosukeDS3)\
**Post date:** [4 June 2020 00:47 UTC](https://discourse.nodered.org/t/how-can-i-make-a-website-page-in-the-main-node-red-adress/27742/3 "2020-06-04T00:47:59Z")

</div>

Just, like, one to reference the "/admin" and the "/dashboard". I remember reading some of it but i dind't really get it, cause you can't leave the url bir in the http-in url box. Maybe i'm missing somehting?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [4 June 2020 00:49 UTC](https://discourse.nodered.org/t/how-can-i-make-a-website-page-in-the-main-node-red-adress/27742/4 "2020-06-04T00:49:32Z")

</div>

Please read the comments in settings.js

---

<div class="post-metadata">

**Author:** ![RyuunosukeDS3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ryuunosukeds3/32/22503_2.png) [@RyuunosukeDS3](https://discourse.nodered.org/u/RyuunosukeDS3)\
**Post date:** [4 June 2020 00:58 UTC](https://discourse.nodered.org/t/how-can-i-make-a-website-page-in-the-main-node-red-adress/27742/5 "2020-06-04T00:58:03Z")

</div>

The thing is i read... Sorry if i'm being stupid, I didn't really get it...

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [4 June 2020 01:03 UTC](https://discourse.nodered.org/t/how-can-i-make-a-website-page-in-the-main-node-red-adress/27742/6 "2020-06-04T01:03:23Z")

</div>

Not sure where in the world you are but I need sleep, I'll check back in the morning.

---

<div class="post-metadata">

**Author:** ![RyuunosukeDS3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ryuunosukeds3/32/22503_2.png) [@RyuunosukeDS3](https://discourse.nodered.org/u/RyuunosukeDS3)\
**Post date:** [4 June 2020 01:17 UTC](https://discourse.nodered.org/t/how-can-i-make-a-website-page-in-the-main-node-red-adress/27742/7 "2020-06-04T01:17:24Z")

</div>

That's ok! Thanks for your time, I will try and look harder. (but feel like i'm really missing something.. maybe i'm just tired.)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [4 June 2020 09:30 UTC](https://discourse.nodered.org/t/how-can-i-make-a-website-page-in-the-main-node-red-adress/27742/8 "2020-06-04T09:30:44Z")

</div>

I use environment variables read from a file by systemd on startup. So my defaults are somewhat different.

```auto
    /* By default, the Node-RED UI is available at http://localhost:1880/
     * The following property can be used to specify a different root path.
     * If set to false, this is disabled.
     */
    httpAdminRoot: process.env.httpAdminRoot || '/',

    /* Some nodes, such as HTTP In, can be used to listen for incoming http requests.
     * By default, these are served relative to '/'. The following property
     * can be used to specifiy a different root path. If set to false, this is
     * disabled.
     */
    httpNodeRoot: process.env.httpNodeRoot || '/',

    /* The following property can be used in place of 'httpAdminRoot' and 'httpNodeRoot',
     * to apply the same root to both parts. Defaults to '/'.
     */
    //httpRoot: process.env.httpRoot || '/red',

    /* When httpAdminRoot is used to move the UI to a different root path, the
     * following property can be used to identify a directory of static content
     * that should be served at http://localhost:1880/.
     */
    httpStatic: process.env.httpStatic || false,

    // If you installed the optional node-red-dashboard you can set it's path relative to httpRoot
    //ui: { path: "ui" },

```

Note that the last one to set Dashboard's URL path - that is relative to the root setting (`httpNodeRoot` or `httpRoot`).

uibuilder also respects the root setting.

Typically, I have `httpRoot` commented out, `httpNodeRoot` set to "/", Dashboard I leave on the default "/ui" and `httpAdminRoot` is set to "/red".

If you need more control that that, you will need to deploy a reverse proxy.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 July 2020 09:30 UTC](https://discourse.nodered.org/t/how-can-i-make-a-website-page-in-the-main-node-red-adress/27742/9 "2020-07-04T09:30:47Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
