Code Monkey home page Code Monkey logo

Comments (8)

i-surkov avatar i-surkov commented on May 24, 2024

I'm pretty sure -ns option does it.
From --help:

-ns, --no-server      No-Server Mode. Starts the searcher but not the Webserver.
-os, --only-server    Server-Only Mode. Starts only the Webserver without the searcher.

from rocketmap.

ilendemli avatar ilendemli commented on May 24, 2024

@Roland3 no, -ns starts the searcher, but the api is not accessible

EDIT: i would like to run a webserver but without the interface, for example if there is no GMAP key set, you won't have access to the map, but you can request the raw data

from rocketmap.

NGPriest avatar NGPriest commented on May 24, 2024

You seem to want the searcher, but which API are you trying to access and how?

from rocketmap.

marauder37 avatar marauder37 commented on May 24, 2024

I don't think this is going to be high-prio for anyone else but if you want to implement it and it's done right I'll merge it. Done right = triggered by no gmap key, doesn't add any more flags or config options, prints helpful warning message to console when triggered, serves an explanation page in place of the map to tell newbies to set a gmaps key

from rocketmap.

ilendemli avatar ilendemli commented on May 24, 2024

@marauder37 i will do (or at least try) it in my free time and create a PR

from rocketmap.

chuyskywalker avatar chuyskywalker commented on May 24, 2024

More so than what @marauder37 said, I don't know if we'd accept such a PR anyway. For 99% of the users, there's no reason to turn off the / page, but adding such an option would mean we have to constantly be sure it's working. It'd be an extra, always-there, dev burden with very low usage for the general user population.

As an alternative, it would be relatively easy to put the map behind a reverse proxy (which people do for all other kinds of reasons like ngrok, ssl, basic-auth, etc) and limit that forwarding endpoints there.

As for the gmaps key, I'm pretty sure you could just insert any garbage value to get past the presence check.

from rocketmap.

ilendemli avatar ilendemli commented on May 24, 2024

@chuyskywalker why not satisfy the 1% too? :P
check the commit here

from rocketmap.

JZ6 avatar JZ6 commented on May 24, 2024

@ilendemli i agree with @chuyskywalker

I don't know if we'd accept such a PR anyway. For 99% of the users, there's no reason to turn off the / page.

-1

from rocketmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.