Private module

133 views
Skip to first unread message

Francois Masurel

unread,
Sep 25, 2013, 12:51:15 PM9/25/13
to google-a...@googlegroups.com
Hi eveverybody,

Is it possible to make a module private (as it was the default with backends) ?

I'm only using modules for long task processing so I don't need and I don't want to have them publicly available.

Thanx for your answer.

Francois

Vinny P

unread,
Sep 26, 2013, 11:35:27 AM9/26/13
to google-a...@googlegroups.com
On Wed, Sep 25, 2013 at 11:51 AM, Francois Masurel <f.ma...@gmail.com> wrote:
Is it possible to make a module private (as it was the default with backends) ?

I'm only using modules for long task processing so I don't need and I don't want to have them publicly available.



Hi Francois,

To make a module private, create a dispatch file and set it to login: admin in the handlers section. 

See this page for further documentation: https://developers.google.com/appengine/docs/java/modules/routing and scroll down to the bottom of the section Addressing Instances.
 
 
-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

Francois MASUREL

unread,
Sep 26, 2013, 11:40:31 AM9/26/13
to google-a...@googlegroups.com
Hi Vinny,

Thanx for answering.

I'm indeed using Java and already set a security constraint on /* to restrict access to admin only.

It works fine but a new instance is started everytime one of my backend URL is called.

Backends were not reachable from the Internet unless stated "public".

I would like to have something similar for my modules.

And thanx for all your helping answers on this forum.

François



François Masurel


--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/KvaLdfCEEDA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Francois Masurel

unread,
Sep 26, 2013, 12:13:25 PM9/26/13
to google-a...@googlegroups.com, mas...@mably.com
I guess I could use a cryptic version name to be sure no spam bot will ever wake up some of my modules (and cost me some $).

It would be better if Google could provide a simple way to make them private and hide them from the outside.

Vinny P

unread,
Sep 26, 2013, 2:44:54 PM9/26/13
to google-a...@googlegroups.com
On Thu, Sep 26, 2013 at 11:13 AM, Francois Masurel <f.ma...@gmail.com> wrote:
I guess I could use a cryptic version name to be sure no spam bot will ever wake up some of my modules (and cost me some $).



What I do is map the root module directory to a static page via the welcome file setting in web.xml ( https://developers.google.com/appengine/docs/java/config/webxml#The_Welcome_File_List ). That way instances won't respond to a spam bot attempting to index. Admittedly, you'll have to remap your handlers so they don't use the root path for requests.



On Thu, Sep 26, 2013 at 11:13 AM, Francois Masurel <f.ma...@gmail.com> wrote:
It would be better if Google could provide a simple way to make them private and hide them from the outside.


+1. 

Francois MASUREL

unread,
Sep 26, 2013, 4:08:38 PM9/26/13
to google-a...@googlegroups.com
Hey Vinny, you're totally right, I should have thought about it.

I just added a welcome static file and favicon and no more instance loading when the root path is accessed.

Sadly it works only for a few predetermined urls.

Thanx again for your help.


François Masurel


Francois Masurel

unread,
Sep 27, 2013, 4:02:13 AM9/27/13
to google-a...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages