Creating HTTPS/SSL password protected site for free using Google AppEngine: Difference between revisions

Jump to navigation Jump to search
Line 18: Line 18:


<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
application: ''your-application-id''
application: your-application-id
version: 0-1-test
version: 0-1-test
runtime: python27
runtime: python27
Line 25: Line 25:


handlers:
handlers:
- url: /''myfolder''
- url: /myfolder
   static_dir: ''myfolder''
   static_dir: myfolder
   login: admin
   login: admin
   secure: always
   secure: always
</syntaxhighlight>
</syntaxhighlight>
Now there is a simple last step to upload everything you need. It is just pretty straightforward if you follow Google App Engine [https://developers.google.com/appengine/docs/python/gettingstartedpython27/uploading documentation].
<syntaxhighlight lang="bash">
gcloud auth login
appcfg.py update "My Project/"
</syntaxhighlight>
Wow, you done it :-) Last thing you need to do is to visit your site. Just type ''https://your-application-id.appspot.com/myfolder/myfile.html''. That's it. You should be prompted for login if you are not already logged in with your Google Account.

Navigation menu