SkalskiP / make-sense

Free to use online tool for labelling photos. https://makesense.ai
GNU General Public License v3.0
3.17k stars 525 forks source link

Is it possible to expose the make-sense to Intranet? #336

Closed project2021-code closed 1 year ago

project2021-code commented 1 year ago

In my homelab, the server and PC are in seperate machine.

I would like to know if it is possible to use it rather than http://localhost:3000 or http://127.0.0.1:3000 For example, edit a config file to change the listen IP or use simple proxy?

github-actions[bot] commented 1 year ago

👋 Hello @project2021-code, thank you for your interest in make-sense - free to use online tool for labelling photos! 🏷️

🐞 Bug reports

If you noticed that make-sense is not working properly, please provide us with as much information as possible. To make your life easier, we have prepared a bug report template containing all the relevant details. We know, we ask for a lot... However, please believe that knowing all that extra information - like the type of browser you use or the version of node you have installed - really helps us to solve your problems faster and more efficiently. 😉

💬 Get in touch

If you've been trying to contact us but for some reason we haven't responded to your issue yet, don't hesitate to get back to us on Gitter or Twitter.

💻 Local setup

# clone repository
git clone https://github.com/SkalskiP/make-sense.git

# navigate to main dir
cd make-sense

# install dependencies
npm install

# serve with hot reload at localhost:3000
npm start

To ensure proper functionality of the application locally, an npm 8.x.x and node.js v16.x.x versions are required. More information about this problem is available in the #16 issue.

project2021-code commented 1 year ago

Find the solution, in make-sense/vite.config.ts, add the following setting after css: {}

    server: {
        host: '0.0.0.0'
    },