MultiMote / niimblue

🖨 NIIMBOT custom web client/app. Design and print labels with NIIMBOT printers directly from your PC or mobile web browser!
https://niim.mmote.ru
MIT License
67 stars 10 forks source link

Configuration the Port for the Website #40

Open frober opened 2 hours ago

frober commented 2 hours ago

Hello, is it possible to change the Port for the Webserver? I would like to start it on my NAS and the Port 80 is already used.

MultiMote commented 2 hours ago

How did you run your instance?

For Docker installation:

docker run --name niimblue -p <ANY_PORT_HERE>:80 -d ghcr.io/multimote/niimblue:latest

Keep in mind that you need to configure SSL if you will be accessing by address other than localhost.

More info here:

https://github.com/MultiMote/niimblue/wiki/Running-own-instance-with-Docker

frober commented 1 hour ago

Thanks for the solution. At the time I don't use docker. I will look at this. To start it directly in the main system, is not possible with the Port as parameter?

MultiMote commented 1 hour ago

What commands are you using to start the server?

frober commented 43 minutes ago

I don't have installed it yet. I tested your Demo and I like it. Many thanks for your Work.
I thought "yarn dev-check" ist the start command. Ist this not right? Sorry that I use your time. I think that I use the docker solution.

MultiMote commented 12 minutes ago

I thought "yarn dev-check" ist the start command. Ist this not right?

To start development server you should run yarn install to install dependencies and yarn dev to start the server.

By default it listens 127.0.0.1 with port 5173. To change it (for example, to 0.0.0.0:5000) use yarn dev --port 5000 --host 0.0.0.0. Then you should to set up SSL. Otherwise printer connection should not work.

Remember, this is development server. It used for development.

For production installation you should run yarn build and then copy static contents of dist folder to your web server's (apache, nginx, etc.) html root. This application does not contains server side, it consists only of static html/js/css/... files.